@dgshahr/ui-kit 0.0.4 → 0.0.6

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 (55) hide show
  1. package/dist/Accordion/AccordionItem.d.ts.map +1 -1
  2. package/dist/Accordion/index.cjs +1 -1
  3. package/dist/Accordion/index.js +1 -1
  4. package/dist/{AccordionItem-DN7bi5kw.js → AccordionItem-BFDuboYi.js} +11 -11
  5. package/dist/{AccordionItem-lq6ehxKe.cjs → AccordionItem-C3MiOBH7.cjs} +11 -11
  6. package/dist/Alert/index.cjs +69 -57
  7. package/dist/Alert/index.d.ts.map +1 -1
  8. package/dist/Alert/index.js +69 -57
  9. package/dist/Badge/index.cjs +22 -22
  10. package/dist/Badge/index.d.ts.map +1 -1
  11. package/dist/Badge/index.js +22 -22
  12. package/dist/Breadcrumb/index.cjs +31 -22
  13. package/dist/Breadcrumb/index.d.ts.map +1 -1
  14. package/dist/Breadcrumb/index.js +31 -22
  15. package/dist/Button/index.cjs +34 -34
  16. package/dist/Button/index.d.ts.map +1 -1
  17. package/dist/Button/index.js +34 -34
  18. package/dist/Button/variants.d.ts.map +1 -1
  19. package/dist/Divider/index.cjs +6 -6
  20. package/dist/Divider/index.js +6 -6
  21. package/dist/Form/Checkbox/index.cjs +2 -2
  22. package/dist/Form/Checkbox/index.js +2 -2
  23. package/dist/Form/Input/index.cjs +10 -10
  24. package/dist/Form/Input/index.d.ts.map +1 -1
  25. package/dist/Form/Input/index.js +10 -10
  26. package/dist/Form/RadioButton/index.cjs +3 -3
  27. package/dist/Form/RadioButton/index.js +3 -3
  28. package/dist/Form/Textarea/index.cjs +4 -4
  29. package/dist/Form/Textarea/index.d.ts.map +1 -1
  30. package/dist/Form/Textarea/index.js +4 -4
  31. package/dist/Form/Wrappers/SelectableInputWrapper/SelectableInputWrapper.d.ts.map +1 -1
  32. package/dist/Pagination/index.cjs +51 -42
  33. package/dist/Pagination/index.d.ts.map +1 -1
  34. package/dist/Pagination/index.js +51 -42
  35. package/dist/SelectableInputWrapper-BIBVazbq.js +77 -0
  36. package/dist/SelectableInputWrapper-g7YtIiBW.cjs +79 -0
  37. package/dist/Slide-BhWFQV8r.js +234 -0
  38. package/dist/Slide-BzXDEkqH.cjs +237 -0
  39. package/dist/Slider/NavigationDot.d.ts.map +1 -1
  40. package/dist/Slider/Slide.d.ts.map +1 -1
  41. package/dist/Slider/Slider.d.ts +2 -1
  42. package/dist/Slider/Slider.d.ts.map +1 -1
  43. package/dist/Slider/index.cjs +1 -1
  44. package/dist/Slider/index.js +1 -1
  45. package/dist/{TextFieldWrapper--hxpmYuz.js → TextFieldWrapper-BkoKcbvs.js} +16 -16
  46. package/dist/{TextFieldWrapper-DaoZxs1E.cjs → TextFieldWrapper-D-DH5_DG.cjs} +16 -16
  47. package/dist/assets/Button.css +355 -317
  48. package/dist/assets/styles.css +343 -305
  49. package/dist/index.cjs +2 -2
  50. package/dist/index.js +2 -2
  51. package/package.json +5 -4
  52. package/dist/SelectableInputWrapper-D2aYQb9J.cjs +0 -71
  53. package/dist/SelectableInputWrapper-DAj8v1nv.js +0 -69
  54. package/dist/Slide-B4sbGo5D.js +0 -198
  55. package/dist/Slide-JxJDSGwS.cjs +0 -201
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9D,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CA6C5D,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../src/components/Accordion/AccordionItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9D,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAiD5D,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  require('../assets/styles.css');;/* empty css */
6
- const AccordionItem = require('../AccordionItem-lq6ehxKe.cjs');
6
+ const AccordionItem = require('../AccordionItem-C3MiOBH7.cjs');
7
7
 
8
8
 
9
9
 
@@ -1,2 +1,2 @@
1
1
  import '../assets/styles.css';/* empty css */
2
- export { A as AccordionGroup, a as AccordionItem } from '../AccordionItem-DN7bi5kw.js';
2
+ export { A as AccordionGroup, a as AccordionItem } from '../AccordionItem-BFDuboYi.js';
@@ -13,7 +13,7 @@ const useAccordionData = () => useContext(accordionContext);
13
13
  const AccordionGroup = (props) => {
14
14
  const { defaultActiveKey = null, className, children } = props;
15
15
  const [activeKey, setActiveKey] = useState(defaultActiveKey);
16
- return /* @__PURE__ */ jsx("div", { className: clsx("flex flex-col", className), children: /* @__PURE__ */ jsx(
16
+ return /* @__PURE__ */ jsx("div", { className: clsx("dgs-ui-kit-flex dgs-ui-kit-flex-col", className), children: /* @__PURE__ */ jsx(
17
17
  accordionContext.Provider,
18
18
  {
19
19
  value: {
@@ -50,26 +50,26 @@ const AccordionItem = (props) => {
50
50
  const reactUseId = useId();
51
51
  const accordionItemKey = accordionKey ?? reactUseId;
52
52
  const isItemActive = accordionItemKey === activeKey;
53
- return /* @__PURE__ */ jsxs("div", { className: clsx("bg-white px-4 pt-4", className), children: [
53
+ return /* @__PURE__ */ jsxs("div", { className: clsx("dgs-ui-kit-bg-white dgs-ui-kit-px-4 dgs-ui-kit-pt-4", className), children: [
54
54
  /* @__PURE__ */ jsxs(
55
55
  "button",
56
56
  {
57
57
  className: clsx(
58
- "flex justify-between items-center w-full",
59
- isItemActive ? "text-primary-500" : "text-gray-600"
58
+ "dgs-ui-kit-flex dgs-ui-kit-justify-between dgs-ui-kit-items-center dgs-ui-kit-w-full",
59
+ isItemActive ? "dgs-ui-kit-text-primary-500" : "dgs-ui-kit-text-gray-600"
60
60
  ),
61
61
  onClick: () => {
62
62
  if (isItemActive) setActiveKey(null);
63
63
  else setActiveKey(accordionItemKey);
64
64
  },
65
65
  children: [
66
- /* @__PURE__ */ jsx("div", { className: isItemActive ? "font-h5-bold" : "font-p1-medium", children: title }),
66
+ /* @__PURE__ */ jsx("div", { className: isItemActive ? "dgs-ui-kit-font-h5-bold" : "dgs-ui-kit-font-p1-medium", children: title }),
67
67
  /* @__PURE__ */ jsx(
68
68
  ArrowDown2Icon,
69
69
  {
70
70
  className: clsx(
71
- "transition duration-300 ease-in-out shrink-0 w-auto h-auto",
72
- isItemActive && "rotate-180"
71
+ "dgs-ui-kit-transition dgs-ui-kit-duration-300 dgs-ui-kit-ease-in-out dgs-ui-kit-shrink-0 dgs-ui-kit-w-auto dgs-ui-kit-h-auto",
72
+ isItemActive && "dgs-ui-kit-rotate-180"
73
73
  ),
74
74
  width: 20,
75
75
  height: 20
@@ -82,11 +82,11 @@ const AccordionItem = (props) => {
82
82
  "div",
83
83
  {
84
84
  className: clsx(
85
- "grid font-p1-regular text-gray-600 overflow-hidden transition-all duration-300 ease-in-out",
86
- isItemActive ? "grid-rows-[1fr] opacity-100 mt-3" : "grid-rows-[0fr] opacity-0",
85
+ "dgs-ui-kit-grid dgs-ui-kit-font-p1-regular dgs-ui-kit-text-gray-600 dgs-ui-kit-overflow-hidden dgs-ui-kit-transition-all dgs-ui-kit-duration-300 dgs-ui-kit-ease-in-out",
86
+ isItemActive ? "dgs-ui-kit-grid-rows-[1fr] dgs-ui-kit-opacity-100 dgs-ui-kit-mt-3" : "dgs-ui-kit-grid-rows-[0fr] dgs-ui-kit-opacity-0",
87
87
  contentClassName
88
88
  ),
89
- children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children })
89
+ children: /* @__PURE__ */ jsx("div", { className: "dgs-ui-kit-overflow-hidden", children })
90
90
  }
91
91
  ),
92
92
  /* @__PURE__ */ jsx(
@@ -94,7 +94,7 @@ const AccordionItem = (props) => {
94
94
  {
95
95
  type: "horizontal",
96
96
  color: "white",
97
- className: "mt-4"
97
+ className: "dgs-ui-kit-mt-4"
98
98
  }
99
99
  )
100
100
  ] });
@@ -15,7 +15,7 @@ const useAccordionData = () => react.useContext(accordionContext);
15
15
  const AccordionGroup = (props) => {
16
16
  const { defaultActiveKey = null, className, children } = props;
17
17
  const [activeKey, setActiveKey] = react.useState(defaultActiveKey);
18
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx.clsx("flex flex-col", className), children: /* @__PURE__ */ jsxRuntime.jsx(
18
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx.clsx("dgs-ui-kit-flex dgs-ui-kit-flex-col", className), children: /* @__PURE__ */ jsxRuntime.jsx(
19
19
  accordionContext.Provider,
20
20
  {
21
21
  value: {
@@ -52,26 +52,26 @@ const AccordionItem = (props) => {
52
52
  const reactUseId = react.useId();
53
53
  const accordionItemKey = accordionKey ?? reactUseId;
54
54
  const isItemActive = accordionItemKey === activeKey;
55
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx.clsx("bg-white px-4 pt-4", className), children: [
55
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx.clsx("dgs-ui-kit-bg-white dgs-ui-kit-px-4 dgs-ui-kit-pt-4", className), children: [
56
56
  /* @__PURE__ */ jsxRuntime.jsxs(
57
57
  "button",
58
58
  {
59
59
  className: clsx.clsx(
60
- "flex justify-between items-center w-full",
61
- isItemActive ? "text-primary-500" : "text-gray-600"
60
+ "dgs-ui-kit-flex dgs-ui-kit-justify-between dgs-ui-kit-items-center dgs-ui-kit-w-full",
61
+ isItemActive ? "dgs-ui-kit-text-primary-500" : "dgs-ui-kit-text-gray-600"
62
62
  ),
63
63
  onClick: () => {
64
64
  if (isItemActive) setActiveKey(null);
65
65
  else setActiveKey(accordionItemKey);
66
66
  },
67
67
  children: [
68
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: isItemActive ? "font-h5-bold" : "font-p1-medium", children: title }),
68
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: isItemActive ? "dgs-ui-kit-font-h5-bold" : "dgs-ui-kit-font-p1-medium", children: title }),
69
69
  /* @__PURE__ */ jsxRuntime.jsx(
70
70
  ArrowDown2Icon,
71
71
  {
72
72
  className: clsx.clsx(
73
- "transition duration-300 ease-in-out shrink-0 w-auto h-auto",
74
- isItemActive && "rotate-180"
73
+ "dgs-ui-kit-transition dgs-ui-kit-duration-300 dgs-ui-kit-ease-in-out dgs-ui-kit-shrink-0 dgs-ui-kit-w-auto dgs-ui-kit-h-auto",
74
+ isItemActive && "dgs-ui-kit-rotate-180"
75
75
  ),
76
76
  width: 20,
77
77
  height: 20
@@ -84,11 +84,11 @@ const AccordionItem = (props) => {
84
84
  "div",
85
85
  {
86
86
  className: clsx.clsx(
87
- "grid font-p1-regular text-gray-600 overflow-hidden transition-all duration-300 ease-in-out",
88
- isItemActive ? "grid-rows-[1fr] opacity-100 mt-3" : "grid-rows-[0fr] opacity-0",
87
+ "dgs-ui-kit-grid dgs-ui-kit-font-p1-regular dgs-ui-kit-text-gray-600 dgs-ui-kit-overflow-hidden dgs-ui-kit-transition-all dgs-ui-kit-duration-300 dgs-ui-kit-ease-in-out",
88
+ isItemActive ? "dgs-ui-kit-grid-rows-[1fr] dgs-ui-kit-opacity-100 dgs-ui-kit-mt-3" : "dgs-ui-kit-grid-rows-[0fr] dgs-ui-kit-opacity-0",
89
89
  contentClassName
90
90
  ),
91
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-hidden", children })
91
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "dgs-ui-kit-overflow-hidden", children })
92
92
  }
93
93
  ),
94
94
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -96,7 +96,7 @@ const AccordionItem = (props) => {
96
96
  {
97
97
  type: "horizontal",
98
98
  color: "white",
99
- className: "mt-4"
99
+ className: "dgs-ui-kit-mt-4"
100
100
  }
101
101
  )
102
102
  ] });
@@ -88,61 +88,61 @@ const InfoCircleBoldIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
88
88
 
89
89
  const alertVariantClassNames = {
90
90
  container: {
91
- warning: "bg-warning-50 border-warning-200",
92
- primary: "bg-primary-50 border-primary-100",
93
- error: "bg-error-50 border-error-200",
94
- success: "bg-success-50 border-success-200",
95
- gray: "bg-gray-50 border-gray-200"
91
+ warning: "dgs-ui-kit-bg-warning-50 dgs-ui-kit-border-warning-200",
92
+ primary: "dgs-ui-kit-bg-primary-50 dgs-ui-kit-border-primary-100",
93
+ error: "dgs-ui-kit-bg-error-50 dgs-ui-kit-border-error-200",
94
+ success: "dgs-ui-kit-bg-success-50 dgs-ui-kit-border-success-200",
95
+ gray: "dgs-ui-kit-bg-gray-50 dgs-ui-kit-border-gray-200"
96
96
  },
97
97
  icon: {
98
- warning: "text-warning-700",
99
- primary: "text-primary-400",
100
- error: "text-error-600",
101
- success: "text-success-600",
102
- gray: "text-gray-600"
98
+ warning: "dgs-ui-kit-text-warning-700",
99
+ primary: "dgs-ui-kit-text-primary-400",
100
+ error: "dgs-ui-kit-text-error-600",
101
+ success: "dgs-ui-kit-text-success-600",
102
+ gray: "dgs-ui-kit-text-gray-600"
103
103
  },
104
104
  title: {
105
- warning: "text-warning-800",
106
- primary: "text-primary-700",
107
- error: "text-error-700",
108
- success: "text-success-800",
109
- gray: "text-gray-800"
105
+ warning: "dgs-ui-kit-text-warning-800",
106
+ primary: "dgs-ui-kit-text-primary-700",
107
+ error: "dgs-ui-kit-text-error-700",
108
+ success: "dgs-ui-kit-text-success-800",
109
+ gray: "dgs-ui-kit-text-gray-800"
110
110
  },
111
111
  close: {
112
- warning: "text-warning-800",
113
- primary: "text-primary-600",
114
- error: "text-error-600",
115
- success: "text-success-800",
116
- gray: "text-gray-800"
112
+ warning: "dgs-ui-kit-text-warning-800",
113
+ primary: "dgs-ui-kit-text-primary-600",
114
+ error: "dgs-ui-kit-text-error-600",
115
+ success: "dgs-ui-kit-text-success-800",
116
+ gray: "dgs-ui-kit-text-gray-800"
117
117
  },
118
118
  text: {
119
- warning: "text-warning-800",
120
- primary: "text-primary-600",
121
- error: "text-error-600",
122
- success: "text-success-800",
123
- gray: "text-gray-700"
119
+ warning: "dgs-ui-kit-text-warning-800",
120
+ primary: "dgs-ui-kit-text-primary-600",
121
+ error: "dgs-ui-kit-text-error-600",
122
+ success: "dgs-ui-kit-text-success-800",
123
+ gray: "dgs-ui-kit-text-gray-700"
124
124
  }
125
125
  };
126
126
  const alertSizeClassNames = {
127
127
  container: {
128
- large: "p-4",
129
- small: "p-3"
128
+ large: "dgs-ui-kit-p-4",
129
+ small: "dgs-ui-kit-p-3"
130
130
  },
131
131
  icon: {
132
132
  large: 24,
133
133
  small: 20
134
134
  },
135
135
  title: {
136
- large: "font-h5-bold mb-2",
137
- small: "font-h6-bold mb-1"
136
+ large: "dgs-ui-kit-font-h5-bold mb-2",
137
+ small: "dgs-ui-kit-font-h6-bold mb-1"
138
138
  },
139
139
  close: {
140
140
  large: 20,
141
141
  small: 20
142
142
  },
143
143
  text: {
144
- large: "font-p2-regular",
145
- small: "font-p3-regular"
144
+ large: "dgs-ui-kit-font-p2-regular",
145
+ small: "dgs-ui-kit-font-p3-regular"
146
146
  }
147
147
  };
148
148
 
@@ -153,7 +153,10 @@ function getAlertIcon(variant, size) {
153
153
  return /* @__PURE__ */ jsxRuntime.jsx(
154
154
  IconComponent,
155
155
  {
156
- className: clsx.clsx("shrink-0 my-[2px]", alertVariantClassNames.icon[variant]),
156
+ className: clsx.clsx(
157
+ "dgs-ui-kit-shrink-0 dgs-ui-kit-my-[2px]",
158
+ alertVariantClassNames.icon[variant]
159
+ ),
157
160
  width: alertSizeClassNames.icon[size],
158
161
  height: alertSizeClassNames.icon[size]
159
162
  }
@@ -176,14 +179,14 @@ const Alert = (props) => {
176
179
  "div",
177
180
  {
178
181
  className: clsx.clsx(
179
- "w-full flex gap-x-3 rounded-xl border border-solid",
182
+ "dgs-ui-kit-w-full dgs-ui-kit-flex dgs-ui-kit-gap-x-3 dgs-ui-kit-rounded-xl dgs-ui-kit-border dgs-ui-kit-border-solid",
180
183
  alertVariantClassNames.container[variant],
181
184
  alertSizeClassNames.container[size],
182
185
  className
183
186
  ),
184
187
  children: [
185
188
  getAlertIcon(variant, size),
186
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col flex-1", children: [
189
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "dgs-ui-kit-flex dgs-ui-kit-flex-col dgs-ui-kit-flex-1", children: [
187
190
  Boolean(title) && /* @__PURE__ */ jsxRuntime.jsx(
188
191
  "div",
189
192
  {
@@ -195,33 +198,42 @@ const Alert = (props) => {
195
198
  }
196
199
  ),
197
200
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: clsx.clsx(alertVariantClassNames.text[variant], alertSizeClassNames.text[size]), children: text }),
198
- (Boolean(primaryButton?.text) || Boolean(outlineButton?.text)) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx.clsx("flex gap-x-2 items-center", size === "large" ? "mt-4" : "mt-3"), children: [
199
- Boolean(primaryButton?.text) && /* @__PURE__ */ jsxRuntime.jsx(
200
- Button,
201
- {
202
- variant: "primary",
203
- color: variant,
204
- size: "small",
205
- ...primaryButton,
206
- children: primaryButton?.text
207
- }
208
- ),
209
- Boolean(outlineButton?.text) && /* @__PURE__ */ jsxRuntime.jsx(
210
- Button,
211
- {
212
- variant: "outline",
213
- color: variant,
214
- size: "small",
215
- ...outlineButton,
216
- children: outlineButton?.text
217
- }
218
- )
219
- ] })
201
+ (Boolean(primaryButton?.text) || Boolean(outlineButton?.text)) && /* @__PURE__ */ jsxRuntime.jsxs(
202
+ "div",
203
+ {
204
+ className: clsx.clsx(
205
+ "dgs-ui-kit-flex dgs-ui-kit-gap-x-2 dgs-ui-kit-items-center",
206
+ size === "large" ? "dgs-ui-kit-mt-4" : "dgs-ui-kit-mt-3"
207
+ ),
208
+ children: [
209
+ Boolean(primaryButton?.text) && /* @__PURE__ */ jsxRuntime.jsx(
210
+ Button,
211
+ {
212
+ variant: "primary",
213
+ color: variant,
214
+ size: "small",
215
+ ...primaryButton,
216
+ children: primaryButton?.text
217
+ }
218
+ ),
219
+ Boolean(outlineButton?.text) && /* @__PURE__ */ jsxRuntime.jsx(
220
+ Button,
221
+ {
222
+ variant: "outline",
223
+ color: variant,
224
+ size: "small",
225
+ ...outlineButton,
226
+ children: outlineButton?.text
227
+ }
228
+ )
229
+ ]
230
+ }
231
+ )
220
232
  ] }),
221
233
  closable && /* @__PURE__ */ jsxRuntime.jsx(
222
234
  "button",
223
235
  {
224
- className: "shrink-0 my-[2px] h-fit",
236
+ className: "dgs-ui-kit-shrink-0 dgs-ui-kit-my-[2px] dgs-ui-kit-h-fit",
225
237
  onClick: () => setShow(false),
226
238
  children: /* @__PURE__ */ jsxRuntime.jsx(
227
239
  CloseRemoveIcon,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/Alert/index.tsx"],"names":[],"mappings":"AAOA,OAAe,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,kBAAkB,CAAC;AAE1B,UAAU,gBAAiB,SAAQ,IAAI,CAAC,WAAW,EAAE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AK,UAAW,UAAU,mDAoF/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -86,61 +86,61 @@ const InfoCircleBoldIcon = (props) => /* @__PURE__ */ jsx(
86
86
 
87
87
  const alertVariantClassNames = {
88
88
  container: {
89
- warning: "bg-warning-50 border-warning-200",
90
- primary: "bg-primary-50 border-primary-100",
91
- error: "bg-error-50 border-error-200",
92
- success: "bg-success-50 border-success-200",
93
- gray: "bg-gray-50 border-gray-200"
89
+ warning: "dgs-ui-kit-bg-warning-50 dgs-ui-kit-border-warning-200",
90
+ primary: "dgs-ui-kit-bg-primary-50 dgs-ui-kit-border-primary-100",
91
+ error: "dgs-ui-kit-bg-error-50 dgs-ui-kit-border-error-200",
92
+ success: "dgs-ui-kit-bg-success-50 dgs-ui-kit-border-success-200",
93
+ gray: "dgs-ui-kit-bg-gray-50 dgs-ui-kit-border-gray-200"
94
94
  },
95
95
  icon: {
96
- warning: "text-warning-700",
97
- primary: "text-primary-400",
98
- error: "text-error-600",
99
- success: "text-success-600",
100
- gray: "text-gray-600"
96
+ warning: "dgs-ui-kit-text-warning-700",
97
+ primary: "dgs-ui-kit-text-primary-400",
98
+ error: "dgs-ui-kit-text-error-600",
99
+ success: "dgs-ui-kit-text-success-600",
100
+ gray: "dgs-ui-kit-text-gray-600"
101
101
  },
102
102
  title: {
103
- warning: "text-warning-800",
104
- primary: "text-primary-700",
105
- error: "text-error-700",
106
- success: "text-success-800",
107
- gray: "text-gray-800"
103
+ warning: "dgs-ui-kit-text-warning-800",
104
+ primary: "dgs-ui-kit-text-primary-700",
105
+ error: "dgs-ui-kit-text-error-700",
106
+ success: "dgs-ui-kit-text-success-800",
107
+ gray: "dgs-ui-kit-text-gray-800"
108
108
  },
109
109
  close: {
110
- warning: "text-warning-800",
111
- primary: "text-primary-600",
112
- error: "text-error-600",
113
- success: "text-success-800",
114
- gray: "text-gray-800"
110
+ warning: "dgs-ui-kit-text-warning-800",
111
+ primary: "dgs-ui-kit-text-primary-600",
112
+ error: "dgs-ui-kit-text-error-600",
113
+ success: "dgs-ui-kit-text-success-800",
114
+ gray: "dgs-ui-kit-text-gray-800"
115
115
  },
116
116
  text: {
117
- warning: "text-warning-800",
118
- primary: "text-primary-600",
119
- error: "text-error-600",
120
- success: "text-success-800",
121
- gray: "text-gray-700"
117
+ warning: "dgs-ui-kit-text-warning-800",
118
+ primary: "dgs-ui-kit-text-primary-600",
119
+ error: "dgs-ui-kit-text-error-600",
120
+ success: "dgs-ui-kit-text-success-800",
121
+ gray: "dgs-ui-kit-text-gray-700"
122
122
  }
123
123
  };
124
124
  const alertSizeClassNames = {
125
125
  container: {
126
- large: "p-4",
127
- small: "p-3"
126
+ large: "dgs-ui-kit-p-4",
127
+ small: "dgs-ui-kit-p-3"
128
128
  },
129
129
  icon: {
130
130
  large: 24,
131
131
  small: 20
132
132
  },
133
133
  title: {
134
- large: "font-h5-bold mb-2",
135
- small: "font-h6-bold mb-1"
134
+ large: "dgs-ui-kit-font-h5-bold mb-2",
135
+ small: "dgs-ui-kit-font-h6-bold mb-1"
136
136
  },
137
137
  close: {
138
138
  large: 20,
139
139
  small: 20
140
140
  },
141
141
  text: {
142
- large: "font-p2-regular",
143
- small: "font-p3-regular"
142
+ large: "dgs-ui-kit-font-p2-regular",
143
+ small: "dgs-ui-kit-font-p3-regular"
144
144
  }
145
145
  };
146
146
 
@@ -151,7 +151,10 @@ function getAlertIcon(variant, size) {
151
151
  return /* @__PURE__ */ jsx(
152
152
  IconComponent,
153
153
  {
154
- className: clsx("shrink-0 my-[2px]", alertVariantClassNames.icon[variant]),
154
+ className: clsx(
155
+ "dgs-ui-kit-shrink-0 dgs-ui-kit-my-[2px]",
156
+ alertVariantClassNames.icon[variant]
157
+ ),
155
158
  width: alertSizeClassNames.icon[size],
156
159
  height: alertSizeClassNames.icon[size]
157
160
  }
@@ -174,14 +177,14 @@ const Alert = (props) => {
174
177
  "div",
175
178
  {
176
179
  className: clsx(
177
- "w-full flex gap-x-3 rounded-xl border border-solid",
180
+ "dgs-ui-kit-w-full dgs-ui-kit-flex dgs-ui-kit-gap-x-3 dgs-ui-kit-rounded-xl dgs-ui-kit-border dgs-ui-kit-border-solid",
178
181
  alertVariantClassNames.container[variant],
179
182
  alertSizeClassNames.container[size],
180
183
  className
181
184
  ),
182
185
  children: [
183
186
  getAlertIcon(variant, size),
184
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1", children: [
187
+ /* @__PURE__ */ jsxs("div", { className: "dgs-ui-kit-flex dgs-ui-kit-flex-col dgs-ui-kit-flex-1", children: [
185
188
  Boolean(title) && /* @__PURE__ */ jsx(
186
189
  "div",
187
190
  {
@@ -193,33 +196,42 @@ const Alert = (props) => {
193
196
  }
194
197
  ),
195
198
  /* @__PURE__ */ jsx("p", { className: clsx(alertVariantClassNames.text[variant], alertSizeClassNames.text[size]), children: text }),
196
- (Boolean(primaryButton?.text) || Boolean(outlineButton?.text)) && /* @__PURE__ */ jsxs("div", { className: clsx("flex gap-x-2 items-center", size === "large" ? "mt-4" : "mt-3"), children: [
197
- Boolean(primaryButton?.text) && /* @__PURE__ */ jsx(
198
- Button,
199
- {
200
- variant: "primary",
201
- color: variant,
202
- size: "small",
203
- ...primaryButton,
204
- children: primaryButton?.text
205
- }
206
- ),
207
- Boolean(outlineButton?.text) && /* @__PURE__ */ jsx(
208
- Button,
209
- {
210
- variant: "outline",
211
- color: variant,
212
- size: "small",
213
- ...outlineButton,
214
- children: outlineButton?.text
215
- }
216
- )
217
- ] })
199
+ (Boolean(primaryButton?.text) || Boolean(outlineButton?.text)) && /* @__PURE__ */ jsxs(
200
+ "div",
201
+ {
202
+ className: clsx(
203
+ "dgs-ui-kit-flex dgs-ui-kit-gap-x-2 dgs-ui-kit-items-center",
204
+ size === "large" ? "dgs-ui-kit-mt-4" : "dgs-ui-kit-mt-3"
205
+ ),
206
+ children: [
207
+ Boolean(primaryButton?.text) && /* @__PURE__ */ jsx(
208
+ Button,
209
+ {
210
+ variant: "primary",
211
+ color: variant,
212
+ size: "small",
213
+ ...primaryButton,
214
+ children: primaryButton?.text
215
+ }
216
+ ),
217
+ Boolean(outlineButton?.text) && /* @__PURE__ */ jsx(
218
+ Button,
219
+ {
220
+ variant: "outline",
221
+ color: variant,
222
+ size: "small",
223
+ ...outlineButton,
224
+ children: outlineButton?.text
225
+ }
226
+ )
227
+ ]
228
+ }
229
+ )
218
230
  ] }),
219
231
  closable && /* @__PURE__ */ jsx(
220
232
  "button",
221
233
  {
222
- className: "shrink-0 my-[2px] h-fit",
234
+ className: "dgs-ui-kit-shrink-0 dgs-ui-kit-my-[2px] dgs-ui-kit-h-fit",
223
235
  onClick: () => setShow(false),
224
236
  children: /* @__PURE__ */ jsx(
225
237
  CloseRemoveIcon,
@@ -4,34 +4,34 @@ require('../assets/styles.css');const jsxRuntime = require('react/jsx-runtime');
4
4
  ;/* empty css */
5
5
 
6
6
  function styleBadge(options) {
7
- const defaultClassName = "inline-flex items-center justify-center rounded-[20px]";
7
+ const defaultClassName = "dgs-ui-kit-inline-flex dgs-ui-kit-items-center dgs-ui-kit-justify-center dgs-ui-kit-rounded-[20px]";
8
8
  const typeClassName = {
9
9
  twoTone: {
10
- primary: "bg-primary-50 text-primary-600",
11
- secondary: "bg-secondary-100 text-secondary-700",
12
- gray: "bg-gray-100 text-gray-600",
13
- success: "bg-success-50 text-success-800",
14
- error: "bg-error-50 text-error-600",
15
- warning: "bg-warning-50 text-warning-700"
10
+ primary: "dgs-ui-kit-bg-primary-50 dgs-ui-kit-text-primary-600",
11
+ secondary: "dgs-ui-kit-bg-secondary-100 dgs-ui-kit-text-secondary-700",
12
+ gray: "dgs-ui-kit-bg-gray-100 dgs-ui-kit-text-gray-600",
13
+ success: "dgs-ui-kit-bg-success-50 dgs-ui-kit-text-success-800",
14
+ error: "dgs-ui-kit-bg-error-50 dgs-ui-kit-text-error-600",
15
+ warning: "dgs-ui-kit-bg-warning-50 dgs-ui-kit-text-warning-700"
16
16
  },
17
17
  solid: {
18
- primary: "bg-primary-500 text-white",
19
- secondary: "bg-secondary-600 text-white",
20
- gray: "bg-gray-600 text-white",
21
- success: "bg-success-600 text-white",
22
- error: "bg-error-500 text-white",
23
- warning: "bg-warning-500 text-black"
18
+ primary: "dgs-ui-kit-bg-primary-500 dgs-ui-kit-text-white",
19
+ secondary: "dgs-ui-kit-bg-secondary-600 dgs-ui-kit-text-white",
20
+ gray: "dgs-ui-kit-bg-gray-600 dgs-ui-kit-text-white",
21
+ success: "dgs-ui-kit-bg-success-600 dgs-ui-kit-text-white",
22
+ error: "dgs-ui-kit-bg-error-500 dgs-ui-kit-text-white",
23
+ warning: "dgs-ui-kit-bg-warning-500 dgs-ui-kit-text-black"
24
24
  }
25
25
  };
26
26
  const textSizeClassName = {
27
- small: "font-oveline-demibold py-1 px-2 gap-[2px]",
28
- medium: "font-caption-demibold py-1 px-[10px] gap-1",
29
- large: "font-button-small py-2 px-4 gap-[6px]"
27
+ small: "dgs-ui-kit-font-oveline-demibold dgs-ui-kit-py-1 dgs-ui-kit-px-2 dgs-ui-kit-gap-[2px]",
28
+ medium: "dgs-ui-kit-font-caption-demibold dgs-ui-kit-py-1 dgs-ui-kit-px-[10px] dgs-ui-kit-gap-1",
29
+ large: "dgs-ui-kit-font-button-small dgs-ui-kit-py-2 dgs-ui-kit-px-4 dgs-ui-kit-gap-[6px]"
30
30
  };
31
31
  const numberSizeClassName = {
32
- small: "font-caption-demibold py-[2px] px-[6px] min-w-5",
33
- medium: "font-p3-medium px-[6px] min-w-6",
34
- large: "font-h5-bold py-[2px] px-2 min-w-8"
32
+ small: "dgs-ui-kit-font-caption-demibold dgs-ui-kit-py-[2px] dgs-ui-kit-px-[6px] dgs-ui-kit-min-w-5",
33
+ medium: "dgs-ui-kit-font-p3-medium dgs-ui-kit-px-[6px] dgs-ui-kit-min-w-6",
34
+ large: "dgs-ui-kit-font-h5-bold dgs-ui-kit-py-[2px] dgs-ui-kit-px-2 dgs-ui-kit-min-w-8"
35
35
  };
36
36
  return [
37
37
  defaultClassName,
@@ -41,9 +41,9 @@ function styleBadge(options) {
41
41
  ].slice().join(" ");
42
42
  }
43
43
  function getIconSize(badgSize) {
44
- if (badgSize === "small") return "w-3 h-3";
45
- if (badgSize === "medium") return "w-[14px] h-[14px]";
46
- return "w-4 h-4";
44
+ if (badgSize === "small") return "dgs-ui-kit-w-3 dgs-ui-kit-h-3";
45
+ if (badgSize === "medium") return "dgs-ui-kit-w-[14px] dgs-ui-kit-h-[14px]";
46
+ return "dgs-ui-kit-w-4 dgs-ui-kit-h-4";
47
47
  }
48
48
  const Badge = (props) => {
49
49
  const {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/Badge/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,kBAAkB,CAAC;AAE1B,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IAC3E,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,kBAAmB,SAAQ,cAAc;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,UAAU,qBAAsB,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;IAClE,SAAS,EAAE,QAAQ,CAAC;CACrB;AAED,KAAK,UAAU,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAyD7D,QAAA,MAAM,KAA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