@stokelp/ui 4.0.3 → 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 (40) 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.js +57 -53
  4. package/dist/components/alert/Alert.js.map +1 -1
  5. package/dist/components/combobox/Combobox.cjs +2 -2
  6. package/dist/components/combobox/Combobox.cjs.map +1 -1
  7. package/dist/components/combobox/Combobox.js +17 -17
  8. package/dist/components/date-picker/DatePicker.cjs +1 -1
  9. package/dist/components/date-picker/DatePicker.cjs.map +1 -1
  10. package/dist/components/date-picker/DatePicker.js +68 -53
  11. package/dist/components/date-picker/DatePicker.js.map +1 -1
  12. package/dist/components/dialog/styled.cjs +1 -1
  13. package/dist/components/dialog/styled.cjs.map +1 -1
  14. package/dist/components/dialog/styled.js +58 -54
  15. package/dist/components/dialog/styled.js.map +1 -1
  16. package/dist/components/drawer/Drawer.cjs +1 -1
  17. package/dist/components/drawer/Drawer.cjs.map +1 -1
  18. package/dist/components/drawer/Drawer.js +46 -42
  19. package/dist/components/drawer/Drawer.js.map +1 -1
  20. package/dist/components/pagination/Pagination.cjs +1 -1
  21. package/dist/components/pagination/Pagination.cjs.map +1 -1
  22. package/dist/components/pagination/Pagination.js +37 -36
  23. package/dist/components/pagination/Pagination.js.map +1 -1
  24. package/dist/components/select/Select.cjs +1 -1
  25. package/dist/components/select/Select.cjs.map +1 -1
  26. package/dist/components/select/Select.js +15 -15
  27. package/dist/components/supplier-rating-badge/SupplierRatingBadge.cjs +1 -1
  28. package/dist/components/supplier-rating-badge/SupplierRatingBadge.cjs.map +1 -1
  29. package/dist/components/supplier-rating-badge/SupplierRatingBadge.js +4 -4
  30. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.cjs +1 -1
  31. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.cjs.map +1 -1
  32. package/dist/components/supplier-rating-badge/SupplierRatingBreakdown.js +33 -33
  33. package/dist/components/ui-labels/UiLabelsProvider.cjs +1 -1
  34. package/dist/components/ui-labels/UiLabelsProvider.cjs.map +1 -1
  35. package/dist/components/ui-labels/UiLabelsProvider.d.ts +34 -2
  36. package/dist/components/ui-labels/UiLabelsProvider.js +32 -7
  37. package/dist/components/ui-labels/UiLabelsProvider.js.map +1 -1
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.js +69 -69
  40. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Text as e } from "../text/Text.js";
3
- import { DEFAULT_SUPPLIER_RATING_LABELS as t, mergeSupplierRatingLabels as n } from "./labels.js";
4
- import { useUiLabels as r } from "../ui-labels/UiLabelsProvider.js";
2
+ import { DEFAULT_SUPPLIER_RATING_LABELS as e, mergeSupplierRatingLabels as t } from "./labels.js";
3
+ import { useUiLabels as n } from "../ui-labels/UiLabelsProvider.js";
4
+ import { Text as r } from "../text/Text.js";
5
5
  import { Icon as i } from "../icon/Icon.js";
6
6
  import a from "../../node_modules/@heroicons/react/24/outline/esm/CheckCircleIcon.js";
7
7
  import o from "../../node_modules/@heroicons/react/24/outline/esm/XCircleIcon.js";
@@ -36,8 +36,8 @@ function _(e) {
36
36
  function v(e) {
37
37
  return e >= 70 ? "#639922" : e >= 40 ? "#BA7517" : "#E24B4A";
38
38
  }
39
- var y = ({ rating: t, responseRate: p, labels: y }) => {
40
- let b = r(), x = n(b.supplierRating, y), S = p != null, C = t.responseDelayMinutes != null, w = t.responseDelayScore == null ? null : Math.round(t.responseDelayScore * 100), T = Math.round(t.completionScore * 100), E = [
39
+ var y = ({ rating: e, responseRate: p, labels: y }) => {
40
+ let b = n(), x = t(b.supplierRating, y), S = p != null, C = e.responseDelayMinutes != null, w = e.responseDelayScore == null ? null : Math.round(e.responseDelayScore * 100), T = Math.round(e.completionScore * 100), E = [
41
41
  {
42
42
  key: "responseRate",
43
43
  value: S ? `${Math.round(p)} %` : x.notAvailable,
@@ -46,7 +46,7 @@ var y = ({ rating: t, responseRate: p, labels: y }) => {
46
46
  },
47
47
  {
48
48
  key: "responseDelay",
49
- value: C ? g(t.responseDelayMinutes, x.units, b.locale) : x.notAvailable,
49
+ value: C ? g(e.responseDelayMinutes, x.units, b.locale) : x.notAvailable,
50
50
  barPercent: w,
51
51
  color: w == null ? void 0 : v(w)
52
52
  },
@@ -69,24 +69,24 @@ var y = ({ rating: t, responseRate: p, labels: y }) => {
69
69
  justify: "space-between",
70
70
  alignItems: "baseline",
71
71
  mb: "space-8",
72
- children: [/* @__PURE__ */ d(e, {
72
+ children: [/* @__PURE__ */ d(r, {
73
73
  as: "span",
74
74
  fontSize: "body.md",
75
75
  fontWeight: "bold",
76
76
  children: x.title
77
- }), t.insufficientData || t.overall == null ? /* @__PURE__ */ d(e, {
77
+ }), e.insufficientData || e.overall == null ? /* @__PURE__ */ d(r, {
78
78
  as: "span",
79
79
  fontSize: "body.sm",
80
80
  fontWeight: "medium",
81
81
  color: "grey.400",
82
82
  children: x.insufficientData
83
- }) : /* @__PURE__ */ f(e, {
83
+ }) : /* @__PURE__ */ f(r, {
84
84
  as: "span",
85
85
  fontSize: "body.lg",
86
86
  fontWeight: "medium",
87
- style: { color: _(t.overall) },
87
+ style: { color: _(e.overall) },
88
88
  children: [
89
- h(t.overall, b.locale),
89
+ h(e.overall, b.locale),
90
90
  " / ",
91
91
  5,
92
92
  " ★"
@@ -102,32 +102,32 @@ var y = ({ rating: t, responseRate: p, labels: y }) => {
102
102
  alignItems: "stretch",
103
103
  gap: "space-8",
104
104
  mb: "space-8",
105
- children: [/* @__PURE__ */ d(e, {
105
+ children: [/* @__PURE__ */ d(r, {
106
106
  as: "span",
107
107
  fontSize: "body.sm",
108
108
  fontWeight: "bold",
109
109
  color: "grey.400",
110
110
  children: x.componentsTitle
111
- }), E.map((t) => /* @__PURE__ */ f(l, {
111
+ }), E.map((e) => /* @__PURE__ */ f(l, {
112
112
  alignItems: "stretch",
113
113
  gap: "space-2",
114
114
  children: [/* @__PURE__ */ f(c, {
115
115
  justify: "space-between",
116
116
  alignItems: "baseline",
117
117
  gap: "space-8",
118
- children: [/* @__PURE__ */ d(e, {
118
+ children: [/* @__PURE__ */ d(r, {
119
119
  as: "span",
120
120
  fontSize: "body.sm",
121
121
  color: "grey.500",
122
- children: x.components[t.key]
123
- }), /* @__PURE__ */ d(e, {
122
+ children: x.components[e.key]
123
+ }), /* @__PURE__ */ d(r, {
124
124
  as: "span",
125
125
  fontSize: "body.sm",
126
126
  fontWeight: "medium",
127
127
  whiteSpace: "nowrap",
128
- style: { color: t.color },
129
- color: t.color ? void 0 : "grey.300",
130
- children: t.value
128
+ style: { color: e.color },
129
+ color: e.color ? void 0 : "grey.300",
130
+ children: e.value
131
131
  })]
132
132
  }), /* @__PURE__ */ d(s, {
133
133
  h: "3px",
@@ -138,12 +138,12 @@ var y = ({ rating: t, responseRate: p, labels: y }) => {
138
138
  h: "100%",
139
139
  borderRadius: "full",
140
140
  style: {
141
- width: t.barPercent == null ? "0%" : `${t.barPercent}%`,
142
- background: t.color ?? "transparent"
141
+ width: e.barPercent == null ? "0%" : `${e.barPercent}%`,
142
+ background: e.color ?? "transparent"
143
143
  }
144
144
  })
145
145
  })]
146
- }, t.key))]
146
+ }, e.key))]
147
147
  }),
148
148
  /* @__PURE__ */ d(s, {
149
149
  h: "1px",
@@ -153,29 +153,29 @@ var y = ({ rating: t, responseRate: p, labels: y }) => {
153
153
  /* @__PURE__ */ f(l, {
154
154
  alignItems: "stretch",
155
155
  gap: "space-4",
156
- children: [/* @__PURE__ */ d(e, {
156
+ children: [/* @__PURE__ */ d(r, {
157
157
  as: "span",
158
158
  fontSize: "body.sm",
159
159
  fontWeight: "bold",
160
160
  color: "grey.400",
161
161
  children: x.completionTitle
162
- }), m.map((n) => {
163
- let r = t.completion[n];
162
+ }), m.map((t) => {
163
+ let n = e.completion[t];
164
164
  return /* @__PURE__ */ f(c, {
165
165
  alignItems: "center",
166
166
  gap: "space-8",
167
167
  children: [/* @__PURE__ */ d(i, {
168
168
  size: "sm",
169
- color: r ? "success.500" : "grey.300",
169
+ color: n ? "success.500" : "grey.300",
170
170
  flexShrink: "0",
171
- children: d(r ? a : o, {})
172
- }), /* @__PURE__ */ d(e, {
171
+ children: d(n ? a : o, {})
172
+ }), /* @__PURE__ */ d(r, {
173
173
  as: "span",
174
174
  fontSize: "body.sm",
175
- color: r ? "grey.500" : "grey.400",
176
- children: x.completion[n]
175
+ color: n ? "grey.500" : "grey.400",
176
+ children: x.completion[t]
177
177
  })]
178
- }, n);
178
+ }, t);
179
179
  })]
180
180
  }),
181
181
  x.footer && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(s, {
@@ -183,7 +183,7 @@ var y = ({ rating: t, responseRate: p, labels: y }) => {
183
183
  bg: "grey.100",
184
184
  mt: "space-8",
185
185
  mb: "space-8"
186
- }), /* @__PURE__ */ d(e, {
186
+ }), /* @__PURE__ */ d(r, {
187
187
  as: "span",
188
188
  fontSize: "9px",
189
189
  color: "grey.300",
@@ -193,6 +193,6 @@ var y = ({ rating: t, responseRate: p, labels: y }) => {
193
193
  ]
194
194
  });
195
195
  };
196
- export { t as DEFAULT_SUPPLIER_RATING_LABELS, p as SUPPLIER_RATING_MAX, y as SupplierRatingBreakdown, h as formatOverall, g as formatResponseDelay, _ as getHeadlineColor, n as mergeSupplierRatingLabels };
196
+ export { e as DEFAULT_SUPPLIER_RATING_LABELS, p as SUPPLIER_RATING_MAX, y as SupplierRatingBreakdown, h as formatOverall, g as formatResponseDelay, _ as getHeadlineColor, t as mergeSupplierRatingLabels };
197
197
 
198
198
  //# sourceMappingURL=SupplierRatingBreakdown.js.map
@@ -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/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_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=T.Icon,exports.IconButton=r.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=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 P.namespace_exports}}),exports.Table=D.Table,exports.TableContainer=D.TableContainer,exports.TableEmptyRow=D.TableEmptyRow,exports.TableGroupTitle=D.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=D.Tbody,exports.Td=D.Td,exports.Text=u.Text,exports.Textarea=d.Textarea,exports.Th=D.Th,exports.Thead=D.Thead,exports.Tooltip=o.Tooltip,exports.Tr=D.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 { Icon as _e } from "./components/icon/Icon.js";
34
- import { Alert as ve } from "./components/alert/Alert.js";
35
- import { Table as ye, TableContainer as be, TableEmptyRow as xe, TableGroupTitle as Se, Tbody as Ce, Td as we, Th as Te, Thead as Ee, Tr as De } from "./components/table/Table.js";
36
- import { Breadcrumb as Oe, BreadcrumbItem as ke, BreadcrumbLink as Ae } from "./components/breadcrumb/Breadcrumb.js";
37
- import { Popover as je, PopoverAnchor as Me, PopoverCloseTrigger as Ne, PopoverContent as Pe, PopoverContext as Fe, PopoverTrigger as Ie } from "./components/popover/Popover.js";
38
- import { Pagination as Le } from "./components/pagination/Pagination.js";
39
- import { Illustration as Re } from "./components/illustration/Illustration.js";
40
- import { ButtonFilter as ze } from "./components/button-filter/ButtonFilter.js";
41
- import { StatusTagSelect as Be } from "./components/status-tag-select/StatusTagSelect.js";
42
- import { namespace_exports as Ve } from "./components/switch-card/namespace.js";
43
- import { namespace_exports as He } from "./components/radio-card-group/namespace.js";
44
- import { namespace_exports as Ue } from "./components/checkbox-card/namespace.js";
45
- import { Combobox as We } from "./components/combobox/Combobox.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, ve as Alert, ft as AppNavigation, pt as AppNavigationLanguageSelect, qe as Avatar, te as Box, Oe as Breadcrumb, ke as BreadcrumbItem, Ae as BreadcrumbLink, o as Button, ze as ButtonFilter, tt as Chat, $e as ChatDocumentMessage, Qe as ChatMessage, et as ChatProfileAvatar, nt as ChatScoreBreakdown, rt as ChatTextInput, s as Checkbox, Ue as CheckboxCard, c as CheckboxGroup, ue as Chip, de as ChipAvatar, fe as ChipClearTrigger, pe as ChipLabel, Ge as Collapsible, We 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, _e as Icon, l as IconButton, Re 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, Le as Pagination, ee as PhoneNumberInput, je as Popover, Me as PopoverAnchor, Ne as PopoverCloseTrigger, Pe as PopoverContent, Fe as PopoverContext, Ie as PopoverTrigger, ut as PriceTag, dt as ProductCardCatalog, ie as RadioButtonGroup, ae as RadioButtonGroupItem, oe as RadioButtonGroupLabel, He 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, Be 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, Ve as SwitchCard, ye as Table, be as TableContainer, xe as TableEmptyRow, Se as TableGroupTitle, D as Tabs, O as TabsChip, k as TabsContent, A as TabsList, j as TabsTrigger, re as Tag, Ce as Tbody, we as Td, T as Text, E as Textarea, Te as Th, Ee as Thead, b as Tooltip, De 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.3",
3
+ "version": "4.1.0",
4
4
  "description": "Stokelp UI React",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",