@lanaco/lnc-react-ui 4.0.199 → 4.0.200

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 (247) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +12 -14
  17. package/dist/BlogExploreSection.cjs +1 -1
  18. package/dist/BlogExploreSection.js +1 -1
  19. package/dist/BlogsSectionWithFilters.cjs +1 -1
  20. package/dist/BlogsSectionWithFilters.js +1 -1
  21. package/dist/Breadcrumbs.cjs +5 -5
  22. package/dist/Breadcrumbs.js +57 -87
  23. package/dist/Button.cjs +11 -11
  24. package/dist/Button.js +126 -173
  25. package/dist/ButtonGroup.cjs +8 -8
  26. package/dist/ButtonGroup.js +37 -49
  27. package/dist/CalorieCalculatorSection.cjs +8 -8
  28. package/dist/CalorieCalculatorSection.js +90 -97
  29. package/dist/CheckBoxInput.cjs +1 -1
  30. package/dist/CheckBoxInput.js +2 -5
  31. package/dist/Chip.cjs +14 -14
  32. package/dist/Chip.js +73 -111
  33. package/dist/ConfirmationForm.cjs +6 -6
  34. package/dist/ConfirmationForm.js +67 -109
  35. package/dist/ContactSection.cjs +1 -0
  36. package/dist/ContactSection.js +1 -0
  37. package/dist/Content.cjs +1 -1
  38. package/dist/Content.js +7 -15
  39. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  40. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  41. package/dist/DataView.cjs +1 -1
  42. package/dist/DataView.js +30 -50
  43. package/dist/DateInput.cjs +4 -4
  44. package/dist/DateInput.js +1347 -1383
  45. package/dist/DecimalInput.cjs +6 -6
  46. package/dist/DecimalInput.js +210 -263
  47. package/dist/DecimalInputV2.cjs +23 -23
  48. package/dist/DecimalInputV2.js +119 -176
  49. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  50. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +1 -1
  53. package/dist/DetailsView.cjs +9 -9
  54. package/dist/DetailsView.js +111 -162
  55. package/dist/DoubleRangeSlider.cjs +22 -22
  56. package/dist/DoubleRangeSlider.js +70 -95
  57. package/dist/DragAndDropFile.cjs +10 -10
  58. package/dist/DragAndDropFile.js +347 -402
  59. package/dist/DragDropFiles.cjs +4 -4
  60. package/dist/DragDropFiles.js +70 -124
  61. package/dist/Drawer.cjs +5 -5
  62. package/dist/Drawer.js +97 -135
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +44 -213
  65. package/dist/DropdownItem.cjs +14 -14
  66. package/dist/DropdownItem.js +106 -142
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +61 -242
  69. package/dist/DropdownMenu.cjs +4 -4
  70. package/dist/DropdownMenu.js +87 -149
  71. package/dist/EditableTable.cjs +10 -10
  72. package/dist/EditableTable.js +165 -331
  73. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  74. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  75. package/dist/FaqSection.cjs +3 -3
  76. package/dist/FaqSection.js +119 -153
  77. package/dist/FileInput.cjs +7 -7
  78. package/dist/FileInput.js +66 -94
  79. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  80. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  81. package/dist/FlexBox.cjs +6 -6
  82. package/dist/FlexBox.js +28 -63
  83. package/dist/FlexGrid.cjs +1 -1
  84. package/dist/FlexGrid.js +27 -67
  85. package/dist/FlexGridItem.cjs +6 -6
  86. package/dist/FlexGridItem.js +34 -62
  87. package/dist/Footer.cjs +1 -1
  88. package/dist/Footer.js +7 -15
  89. package/dist/FormField.cjs +7 -7
  90. package/dist/FormField.js +22 -47
  91. package/dist/FormView.cjs +6 -6
  92. package/dist/FormView.js +148 -195
  93. package/dist/Grid.cjs +2 -2
  94. package/dist/Grid.js +40 -65
  95. package/dist/GridItem.cjs +2 -2
  96. package/dist/GridItem.js +47 -80
  97. package/dist/Header.cjs +1 -1
  98. package/dist/Header.js +7 -15
  99. package/dist/HelpBannerSection.cjs +3 -3
  100. package/dist/HelpBannerSection.js +9 -15
  101. package/dist/Icon.cjs +4 -4
  102. package/dist/Icon.js +29 -55
  103. package/dist/IconButton.cjs +9 -9
  104. package/dist/IconButton.js +89 -127
  105. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  106. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  107. package/dist/Kanban.cjs +7 -7
  108. package/dist/Kanban.js +2033 -2098
  109. package/dist/KanbanActionsToolbar.cjs +4 -5
  110. package/dist/KanbanActionsToolbar.js +61 -96
  111. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  112. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  113. package/dist/KanbanCard.cjs +1 -1
  114. package/dist/KanbanCard.js +2 -3
  115. package/dist/KanbanFooter.cjs +3 -3
  116. package/dist/KanbanFooter.js +37 -55
  117. package/dist/KanbanHeader.cjs +4 -4
  118. package/dist/KanbanHeader.js +49 -81
  119. package/dist/KanbanView.cjs +2 -2
  120. package/dist/KanbanView.js +106 -173
  121. package/dist/Link.cjs +7 -7
  122. package/dist/Link.js +20 -37
  123. package/dist/LocationSearchSection.cjs +1 -1
  124. package/dist/LocationSearchSection.js +1 -1
  125. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  126. package/dist/MasonryGeneralCardsSection.js +1 -1
  127. package/dist/MenuItem.cjs +13 -13
  128. package/dist/MenuItem.js +101 -139
  129. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  130. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  131. package/dist/Modal.cjs +18 -19
  132. package/dist/Modal.js +131 -166
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +25 -196
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +27 -209
  137. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  138. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  139. package/dist/NestedDropdownItem.cjs +3 -3
  140. package/dist/NestedDropdownItem.js +45 -67
  141. package/dist/NestedMenuItem.cjs +5 -5
  142. package/dist/NestedMenuItem.js +51 -78
  143. package/dist/NotificationContainer.cjs +10 -10
  144. package/dist/NotificationContainer.js +46 -79
  145. package/dist/NotificationMessage.cjs +2 -2
  146. package/dist/NotificationMessage.js +47 -64
  147. package/dist/NumberInput.cjs +23 -23
  148. package/dist/NumberInput.js +89 -149
  149. package/dist/PageLayout.cjs +2 -2
  150. package/dist/PageLayout.js +20 -28
  151. package/dist/Pagination.cjs +3 -3
  152. package/dist/Pagination.js +102 -185
  153. package/dist/PasswordInput.cjs +23 -23
  154. package/dist/PasswordInput.js +108 -137
  155. package/dist/Popover.cjs +1 -1
  156. package/dist/Popover.js +7 -32
  157. package/dist/PopoverContent.cjs +5 -5
  158. package/dist/PopoverContent.js +22 -28
  159. package/dist/PopoverTrigger.cjs +1 -1
  160. package/dist/PopoverTrigger.js +7 -12
  161. package/dist/ProgressBar.cjs +8 -8
  162. package/dist/ProgressBar.js +32 -59
  163. package/dist/RadioGroup.cjs +3 -3
  164. package/dist/RadioGroup.js +41 -72
  165. package/dist/RadioInput.cjs +28 -28
  166. package/dist/RadioInput.js +78 -123
  167. package/dist/RangeSlider.cjs +19 -19
  168. package/dist/RangeSlider.js +92 -119
  169. package/dist/ReviewsSection.cjs +13 -13
  170. package/dist/ReviewsSection.js +81 -101
  171. package/dist/SalesCampaignsSection.cjs +19 -19
  172. package/dist/SalesCampaignsSection.js +283 -324
  173. package/dist/SearchBar.cjs +10 -10
  174. package/dist/SearchBar.js +168 -188
  175. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  176. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  177. package/dist/SearchSection.cjs +1 -1
  178. package/dist/SearchSection.js +2 -3
  179. package/dist/Separator.cjs +3 -3
  180. package/dist/Separator.js +14 -19
  181. package/dist/Sidebar.cjs +4 -5
  182. package/dist/Sidebar.js +33 -56
  183. package/dist/SimpleCategoriesSection.cjs +1 -1
  184. package/dist/SimpleCategoriesSection.js +1 -1
  185. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  186. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  187. package/dist/Spinner.cjs +18 -18
  188. package/dist/Spinner.js +37 -54
  189. package/dist/StatsSection.cjs +6 -6
  190. package/dist/StatsSection.js +15 -25
  191. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  192. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  193. package/dist/Surface.cjs +4 -4
  194. package/dist/Surface.js +19 -34
  195. package/dist/SwipeableDrawer.cjs +8 -8
  196. package/dist/SwipeableDrawer.js +84 -136
  197. package/dist/TabItem.cjs +11 -11
  198. package/dist/TabItem.js +83 -118
  199. package/dist/Table.cjs +65 -65
  200. package/dist/Table.js +786 -1167
  201. package/dist/TableView.cjs +2 -2
  202. package/dist/TableView.js +113 -197
  203. package/dist/Tabs.cjs +4 -4
  204. package/dist/Tabs.js +41 -60
  205. package/dist/TextAreaInput.cjs +14 -14
  206. package/dist/TextAreaInput.js +131 -181
  207. package/dist/TextInput.cjs +23 -23
  208. package/dist/TextInput.js +78 -126
  209. package/dist/ThemeProvider.cjs +5 -5
  210. package/dist/ThemeProvider.js +35 -39
  211. package/dist/TimeInput.cjs +7 -7
  212. package/dist/TimeInput.js +46 -72
  213. package/dist/Toggle.cjs +20 -20
  214. package/dist/Toggle.js +78 -109
  215. package/dist/ToggleSection.cjs +5 -5
  216. package/dist/ToggleSection.js +48 -55
  217. package/dist/TreeMenu.cjs +5 -5
  218. package/dist/TreeMenu.js +43 -67
  219. package/dist/TreeMenuSeparator.cjs +3 -3
  220. package/dist/TreeMenuSeparator.js +12 -20
  221. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  222. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  223. package/dist/UploadedFile.cjs +11 -11
  224. package/dist/UploadedFile.js +73 -99
  225. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  226. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  227. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  228. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  229. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  230. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  231. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  232. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  233. package/dist/index-BdKi2ogu.js +39 -0
  234. package/dist/index-CRk3vcd4.cjs +95 -0
  235. package/dist/index-CX2A-q39.cjs +4 -0
  236. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  237. package/dist/index.cjs +1 -1
  238. package/dist/index.js +2 -2
  239. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  240. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  241. package/package.json +1 -1
  242. package/dist/KanbanCard-68kSAXL6.js +0 -175
  243. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  244. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  245. package/dist/index-Be-_NM9Q.cjs +0 -4
  246. package/dist/index-C0LcDEqa.js +0 -47
  247. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,14 +1,13 @@
1
- import { jsxs as p, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as M } from "react";
3
- import { P as e } from "./index-CblbdqjE.js";
4
3
  import { s as V } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
4
  import Z from "./DropdownMenu.js";
6
- import i from "./DropdownItem.js";
7
- import q from "./Separator.js";
8
- import b from "./Button.js";
9
- import { b as m } from "./utils-DtEfC-TX.js";
10
- import { useTheme as F } from "./ThemeProvider.js";
11
- const G = V.div`
5
+ import a from "./DropdownItem.js";
6
+ import _ from "./Separator.js";
7
+ import p from "./Button.js";
8
+ import { b } from "./utils-DtEfC-TX.js";
9
+ import { useTheme as q } from "./ThemeProvider.js";
10
+ const F = V.div`
12
11
  display: flex;
13
12
  align-items: center;
14
13
  border-radius: 8px;
@@ -17,18 +16,18 @@ const G = V.div`
17
16
  font-weight: 700;
18
17
  font-size: 0.875rem;
19
18
  color: rgba(15, 23, 42, 100%);
20
- background-color: ${(n) => m(
21
- n.theme,
19
+ background-color: ${(t) => b(
20
+ t.theme,
22
21
  "Toolbar",
23
- n.color,
22
+ t.color,
24
23
  "enabled",
25
24
  "background",
26
25
  "backgroundOpacity"
27
26
  )};
28
- border: ${(n) => `1px solid ${m(
29
- n.theme,
27
+ border: ${(t) => `1px solid ${b(
28
+ t.theme,
30
29
  "Toolbar",
31
- n.color,
30
+ t.color,
32
31
  "enabled",
33
32
  "border",
34
33
  "borderOpacity"
@@ -39,131 +38,129 @@ const G = V.div`
39
38
  display: flex;
40
39
  gap: 0.5rem;
41
40
  }
42
- }
43
- `, u = M((n, f) => {
41
+ `, G = M((t, m) => {
44
42
  const {
45
- __TYPE__: H = "ACTIONS_TOOLBAR",
46
- showCreate: y = !0,
47
- enableCreate: g = !0,
48
- createText: c = "Create new item",
49
- showEdit: w = !0,
43
+ showCreate: u = !0,
44
+ enableCreate: f = !0,
45
+ createText: s = "Create new item",
46
+ showEdit: y = !0,
50
47
  enableEditOnSelection: h = !0,
51
- editText: T = "Edit",
48
+ editText: w = "Edit",
52
49
  showDelete: x = !0,
53
- enableDeleteOnSelection: C = !0,
54
- deleteText: O = "Delete",
55
- showCopy: D = !0,
56
- enableCopyOnSelection: S = !0,
57
- copyText: _ = "Copy",
58
- actionsText: E = "Actions",
59
- customActions: s,
50
+ enableDeleteOnSelection: g = !0,
51
+ deleteText: C = "Delete",
52
+ showCopy: T = !0,
53
+ enableCopyOnSelection: O = !0,
54
+ copyText: D = "Copy",
55
+ actionsText: k = "Actions",
56
+ customActions: i,
60
57
  selectedRowsLength: r = 0,
61
58
  readOnly: l = !1,
62
- actionDropdownProps: k,
63
- actionsDropdownZIndex: A,
59
+ actionDropdownProps: S,
60
+ actionsDropdownZIndex: v,
64
61
  actionsDropdownPlacement: I,
65
62
  //----------------
66
63
  onCreate: N = () => {
67
64
  },
68
65
  onEdit: R = () => {
69
66
  },
70
- onDelete: v = () => {
67
+ onDelete: A = () => {
71
68
  },
72
- onCopy: P = () => {
69
+ onCopy: E = () => {
73
70
  },
74
- className: j = "",
75
- style: z = {},
76
- color: a = "primary",
71
+ className: $ = "",
72
+ style: j = {},
73
+ color: n = "primary",
77
74
  size: d = "small",
78
- selectedRows: L,
79
- ...$
80
- } = n, { theme: B } = F();
81
- return /* @__PURE__ */ p(
82
- G,
75
+ selectedRows: z,
76
+ ...B
77
+ } = t, { theme: L } = q();
78
+ return /* @__PURE__ */ c(
79
+ F,
83
80
  {
84
- ref: f,
85
- theme: B,
86
- color: a,
87
- className: `lnc-table-view-actions-toolbar ${j}`,
88
- style: z,
89
- ...$,
81
+ ref: m,
82
+ theme: L,
83
+ color: n,
84
+ className: `lnc-table-view-actions-toolbar ${$}`,
85
+ style: j,
86
+ ...B,
90
87
  children: [
91
- /* @__PURE__ */ t("div", { children: y && l == !1 && /* @__PURE__ */ t(
92
- b,
88
+ /* @__PURE__ */ o("div", { children: u && l == !1 && /* @__PURE__ */ o(
89
+ p,
93
90
  {
94
91
  leadingIcon: "plus",
95
92
  btnType: "outline",
96
93
  type: "button",
97
- color: a,
94
+ color: n,
98
95
  size: d,
99
- title: c,
100
- disabled: !g,
96
+ title: s,
97
+ disabled: !f,
101
98
  onClick: N,
102
- text: c
99
+ text: s
103
100
  }
104
101
  ) }),
105
- /* @__PURE__ */ t("div", { children: /* @__PURE__ */ p(
102
+ /* @__PURE__ */ o("div", { children: /* @__PURE__ */ c(
106
103
  Z,
107
104
  {
108
105
  className: "lnc-table-view-actions-toolbar-dropdown",
109
- color: a,
106
+ color: n,
110
107
  size: d,
111
- zIndex: A,
108
+ zIndex: v,
112
109
  placement: I,
113
- ...k,
114
- control: /* @__PURE__ */ t(
115
- b,
110
+ ...S,
111
+ control: /* @__PURE__ */ o(
112
+ p,
116
113
  {
117
- text: E,
114
+ text: k,
118
115
  btnType: "outline",
119
116
  trailingIcon: "angle-down",
120
- color: a,
117
+ color: n,
121
118
  size: d,
122
119
  type: "button"
123
120
  }
124
121
  ),
125
122
  children: [
126
- D && l == !1 && /* @__PURE__ */ t(
127
- i,
123
+ T && l == !1 && /* @__PURE__ */ o(
124
+ a,
128
125
  {
129
126
  icon: "copy",
130
- disabled: !(S && r > 0),
131
- onClick: P,
132
- children: _
127
+ disabled: !(O && r > 0),
128
+ onClick: E,
129
+ children: D
133
130
  }
134
131
  ),
135
- w && l == !1 && /* @__PURE__ */ t(
136
- i,
132
+ y && l == !1 && /* @__PURE__ */ o(
133
+ a,
137
134
  {
138
135
  icon: "pen",
139
136
  disabled: !(h && r > 0),
140
137
  onClick: R,
141
- children: T
138
+ children: w
142
139
  }
143
140
  ),
144
- x && l == !1 && /* @__PURE__ */ t(
145
- i,
141
+ x && l == !1 && /* @__PURE__ */ o(
142
+ a,
146
143
  {
147
144
  icon: "trash",
148
- disabled: !(C && r > 0),
149
- onClick: v,
150
- children: O
145
+ disabled: !(g && r > 0),
146
+ onClick: A,
147
+ children: C
151
148
  }
152
149
  ),
153
- /* @__PURE__ */ t(q, {}),
154
- s == null ? void 0 : s.map((o, Y) => {
155
- if ((o == null ? void 0 : o.show) != !1)
156
- return /* @__PURE__ */ t(
157
- i,
150
+ /* @__PURE__ */ o(_, {}),
151
+ i == null ? void 0 : i.map((e, P) => {
152
+ if ((e == null ? void 0 : e.show) != !1)
153
+ return /* @__PURE__ */ o(
154
+ a,
158
155
  {
159
- icon: o.icon,
160
- disabled: !(o.enableOnSelection == !0 && r > 0 || o.enable == !0 && o.enableOnSelection == !1),
156
+ icon: e.icon,
157
+ disabled: !(e.enableOnSelection == !0 && r > 0 || e.enable == !0 && e.enableOnSelection == !1),
161
158
  onClick: () => {
162
- o.onAction(L);
159
+ e.onAction(z);
163
160
  },
164
- children: o.name
161
+ children: e.name
165
162
  },
166
- Y
163
+ P
167
164
  );
168
165
  })
169
166
  ]
@@ -173,56 +170,7 @@ const G = V.div`
173
170
  }
174
171
  );
175
172
  });
176
- u.propTypes = {
177
- /**
178
- * This property determines where the component is rendered.
179
- * Should not be overridden!
180
- */
181
- __TYPE__: e.string,
182
- showCreate: e.bool,
183
- enableCreate: e.bool,
184
- createText: e.string,
185
- showEdit: e.bool,
186
- enableEditOnSelection: e.bool,
187
- editText: e.string,
188
- showDelete: e.bool,
189
- enableDeleteOnSelection: e.bool,
190
- deleteText: e.string,
191
- showCopy: e.bool,
192
- enableCopyOnSelection: e.bool,
193
- copyText: e.string,
194
- actionsText: e.string,
195
- /**
196
- * Actions that will be shown in toolbar with existing actions
197
- * customActions=[{name: `<string>`, show: `<bool>`, enable: `<bool>`, enableOnSelection: `<bool>`, onAction: `PropTypes.func`}, ...]
198
- */
199
- customActions: e.array,
200
- selectedRowsLength: e.number,
201
- /**
202
- * If `readOnly={true}` actions Delete, Edit and Copy won't be shown.
203
- */
204
- readOnly: e.bool,
205
- //-------------------------------------------------------------
206
- onCreate: e.func,
207
- onEdit: e.func,
208
- onDelete: e.func,
209
- onCopy: e.func,
210
- //------------------------------------------------------------
211
- className: e.string,
212
- style: e.object,
213
- size: e.oneOf(["small", "medium", "large"]),
214
- color: e.oneOf([
215
- "primary",
216
- "secondary",
217
- "success",
218
- "danger",
219
- "warning",
220
- "information",
221
- "neutral",
222
- "gray"
223
- ])
224
- };
225
- u.displayName = "ACTIONS_TOOLBAR";
173
+ G.displayName = "ACTIONS_TOOLBAR";
226
174
  export {
227
- u as default
175
+ G as default
228
176
  };
package/dist/Alert.cjs CHANGED
@@ -1,10 +1,10 @@
1
- "use strict";const o=require("react/jsx-runtime"),c=require("react"),r=require("./index-BpbMKBf_.cjs"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./ThemeProvider.cjs"),t=require("./utils-RnrgDDZP.cjs"),s=require("./Icon.cjs"),P=x.styled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),x=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./ThemeProvider.cjs"),r=require("./utils-RnrgDDZP.cjs"),a=require("./Icon.cjs"),y=x.styled.div`
2
2
  min-height: 3rem;
3
- ${e=>t.getComponentTypographyCss(e.theme,"Alert",e.size,"enabled")};
3
+ ${e=>r.getComponentTypographyCss(e.theme,"Alert",e.size,"enabled")};
4
4
  line-height: 1.25rem;
5
- border-radius: ${e=>t.getBorderRadiusValueWithUnits(e.theme,"regular")};
6
- background-color: ${e=>t.getColorRgbaValue(e.theme,"Alert",e.color,"enabled","background","backgroundOpacity")};
7
- color: ${e=>t.getColorRgbaValue(e.theme,"Alert",e.color,"enabled","text")};
5
+ border-radius: ${e=>r.getBorderRadiusValueWithUnits(e.theme,"regular")};
6
+ background-color: ${e=>r.getColorRgbaValue(e.theme,"Alert",e.color,"enabled","background","backgroundOpacity")};
7
+ color: ${e=>r.getColorRgbaValue(e.theme,"Alert",e.color,"enabled","text")};
8
8
  word-wrap: break-word;
9
9
  box-sizing: border-box;
10
10
  padding: 0.875rem 1rem;
@@ -22,8 +22,8 @@
22
22
  }
23
23
  }
24
24
  & .alert-title {
25
- font-weight: ${e=>t.getComponentPropValue(e.theme,"Alert",e.color,"enabled","fontWeightTitle")};
26
- color: ${e=>t.getColorRgbaValue(e.theme,"Alert",e.color,"enabled","title")};
25
+ font-weight: ${e=>r.getComponentPropValue(e.theme,"Alert",e.color,"enabled","fontWeightTitle")};
26
+ color: ${e=>r.getColorRgbaValue(e.theme,"Alert",e.color,"enabled","title")};
27
27
  }
28
28
  & .alert-actions {
29
29
  display: ${e=>e.actions?"flex":"none"};
@@ -33,8 +33,8 @@
33
33
  }
34
34
 
35
35
  & .alert-actions > * {
36
- font-weight: ${e=>t.getComponentPropValue(e.theme,"Alert",e.color,"enabled","fontWeightAction")};
37
- color: ${e=>t.getColorRgbaValue(e.theme,"Alert",e.color,"enabled","action")};
36
+ font-weight: ${e=>r.getComponentPropValue(e.theme,"Alert",e.color,"enabled","fontWeightAction")};
37
+ color: ${e=>r.getColorRgbaValue(e.theme,"Alert",e.color,"enabled","action")};
38
38
  cursor: pointer;
39
39
  }
40
- `,w=e=>e=="danger"?"times-circle":e=="warning"?"exclamation-triangle":e=="success"?"check-circle":"exclamation-circle",C=({statusIcon:e,color:n})=>typeof e=="boolean"&&e==!0?o.jsx(s,{className:"alert-icon",icon:w(n)}):typeof e=="string"&&e!==""?o.jsx(s,{className:"alert-icon",icon:e}):c.cloneElement(e,{className:"alert-icon "+(e==null?void 0:e.className)}),m=c.forwardRef((e,n)=>{const{className:d="",size:p="small",color:l="primary",title:g,actions:i,noIcon:u=!1,statusIcon:a=!0,children:y,...h}=e,{theme:f}=T.useTheme(),b={theme:f,size:p,color:l};return o.jsxs(P,{ref:n,...b,className:"lnc-ui-alert "+d,actions:i,...h,children:[u==!1&&a&&o.jsx(C,{color:l,statusIcon:a}),o.jsxs("div",{className:"alert-content",children:[o.jsx("div",{className:"alert-title",children:g}),y,o.jsx("div",{className:"alert-actions",children:i})]})]})});m.propTypes={title:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.element]),actions:r.PropTypes.element,statusIcon:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.element,r.PropTypes.bool]),noIcon:r.PropTypes.bool,className:r.PropTypes.string,size:r.PropTypes.oneOf(["small","medium","large"]),color:r.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=m;
40
+ `,w=e=>e=="danger"?"times-circle":e=="warning"?"exclamation-triangle":e=="success"?"check-circle":"exclamation-circle",C=({statusIcon:e,color:l})=>typeof e=="boolean"&&e==!0?t.jsx(a,{className:"alert-icon",icon:w(l)}):typeof e=="string"&&e!==""?t.jsx(a,{className:"alert-icon",icon:e}):c.cloneElement(e,{className:"alert-icon "+(e==null?void 0:e.className)}),A=c.forwardRef((e,l)=>{const{className:s="",size:m="small",color:o="primary",title:d,actions:n,noIcon:g=!1,statusIcon:i=!0,children:h,...u}=e,{theme:f}=p.useTheme(),b={theme:f,size:m,color:o};return t.jsxs(y,{ref:l,...b,className:"lnc-ui-alert "+s,actions:n,...u,children:[g==!1&&i&&t.jsx(C,{color:o,statusIcon:i}),t.jsxs("div",{className:"alert-content",children:[t.jsx("div",{className:"alert-title",children:d}),h,t.jsx("div",{className:"alert-actions",children:n})]})]})});module.exports=A;
package/dist/Alert.js CHANGED
@@ -1,16 +1,15 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as y, cloneElement as x } from "react";
3
- import { P as r } from "./index-CblbdqjE.js";
4
- import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { useTheme as N } from "./ThemeProvider.js";
6
- import { c as A, a as $, b as o, g as m } from "./utils-DtEfC-TX.js";
7
- import s from "./Icon.js";
8
- const T = w.div`
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as u, cloneElement as x } from "react";
3
+ import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import { useTheme as w } from "./ThemeProvider.js";
5
+ import { c as A, a as N, b as t, g as c } from "./utils-DtEfC-TX.js";
6
+ import m from "./Icon.js";
7
+ const $ = y.div`
9
8
  min-height: 3rem;
10
9
  ${(e) => A(e.theme, "Alert", e.size, "enabled")};
11
10
  line-height: 1.25rem;
12
- border-radius: ${(e) => $(e.theme, "regular")};
13
- background-color: ${(e) => o(
11
+ border-radius: ${(e) => N(e.theme, "regular")};
12
+ background-color: ${(e) => t(
14
13
  e.theme,
15
14
  "Alert",
16
15
  e.color,
@@ -18,7 +17,7 @@ const T = w.div`
18
17
  "background",
19
18
  "backgroundOpacity"
20
19
  )};
21
- color: ${(e) => o(e.theme, "Alert", e.color, "enabled", "text")};
20
+ color: ${(e) => t(e.theme, "Alert", e.color, "enabled", "text")};
22
21
  word-wrap: break-word;
23
22
  box-sizing: border-box;
24
23
  padding: 0.875rem 1rem;
@@ -36,14 +35,14 @@ const T = w.div`
36
35
  }
37
36
  }
38
37
  & .alert-title {
39
- font-weight: ${(e) => m(
38
+ font-weight: ${(e) => c(
40
39
  e.theme,
41
40
  "Alert",
42
41
  e.color,
43
42
  "enabled",
44
43
  "fontWeightTitle"
45
44
  )};
46
- color: ${(e) => o(e.theme, "Alert", e.color, "enabled", "title")};
45
+ color: ${(e) => t(e.theme, "Alert", e.color, "enabled", "title")};
47
46
  }
48
47
  & .alert-actions {
49
48
  display: ${(e) => e.actions ? "flex" : "none"};
@@ -53,14 +52,14 @@ const T = w.div`
53
52
  }
54
53
 
55
54
  & .alert-actions > * {
56
- font-weight: ${(e) => m(
55
+ font-weight: ${(e) => c(
57
56
  e.theme,
58
57
  "Alert",
59
58
  e.color,
60
59
  "enabled",
61
60
  "fontWeightAction"
62
61
  )};
63
- color: ${(e) => o(
62
+ color: ${(e) => t(
64
63
  e.theme,
65
64
  "Alert",
66
65
  e.color,
@@ -69,70 +68,39 @@ const T = w.div`
69
68
  )};
70
69
  cursor: pointer;
71
70
  }
72
- `, C = (e) => e == "danger" ? "times-circle" : e == "warning" ? "exclamation-triangle" : e == "success" ? "check-circle" : "exclamation-circle", k = ({ statusIcon: e, color: l }) => typeof e == "boolean" && e == !0 ? /* @__PURE__ */ t(s, { className: "alert-icon", icon: C(l) }) : typeof e == "string" && e !== "" ? /* @__PURE__ */ t(s, { className: "alert-icon", icon: e }) : x(e, {
71
+ `, C = (e) => e == "danger" ? "times-circle" : e == "warning" ? "exclamation-triangle" : e == "success" ? "check-circle" : "exclamation-circle", k = ({ statusIcon: e, color: l }) => typeof e == "boolean" && e == !0 ? /* @__PURE__ */ r(m, { className: "alert-icon", icon: C(l) }) : typeof e == "string" && e !== "" ? /* @__PURE__ */ r(m, { className: "alert-icon", icon: e }) : x(e, {
73
72
  className: "alert-icon " + (e == null ? void 0 : e.className)
74
- }), z = y((e, l) => {
73
+ }), j = u((e, l) => {
75
74
  const {
76
- className: d = "",
77
- size: g = "small",
78
- color: n = "primary",
75
+ className: s = "",
76
+ size: d = "small",
77
+ color: o = "primary",
79
78
  title: f,
80
79
  actions: a,
81
- noIcon: h = !1,
80
+ noIcon: g = !1,
82
81
  statusIcon: i = !0,
83
- children: p,
82
+ children: h,
84
83
  ...b
85
- } = e, { theme: u } = N();
86
- return /* @__PURE__ */ c(
87
- T,
84
+ } = e, { theme: p } = w();
85
+ return /* @__PURE__ */ n(
86
+ $,
88
87
  {
89
88
  ref: l,
90
- ...{ theme: u, size: g, color: n },
91
- className: "lnc-ui-alert " + d,
89
+ ...{ theme: p, size: d, color: o },
90
+ className: "lnc-ui-alert " + s,
92
91
  actions: a,
93
92
  ...b,
94
93
  children: [
95
- h == !1 && i && /* @__PURE__ */ t(k, { color: n, statusIcon: i }),
96
- /* @__PURE__ */ c("div", { className: "alert-content", children: [
97
- /* @__PURE__ */ t("div", { className: "alert-title", children: f }),
98
- p,
99
- /* @__PURE__ */ t("div", { className: "alert-actions", children: a })
94
+ g == !1 && i && /* @__PURE__ */ r(k, { color: o, statusIcon: i }),
95
+ /* @__PURE__ */ n("div", { className: "alert-content", children: [
96
+ /* @__PURE__ */ r("div", { className: "alert-title", children: f }),
97
+ h,
98
+ /* @__PURE__ */ r("div", { className: "alert-actions", children: a })
100
99
  ] })
101
100
  ]
102
101
  }
103
102
  );
104
103
  });
105
- z.propTypes = {
106
- title: r.oneOfType([r.string, r.element]),
107
- actions: r.element,
108
- /**
109
- * Can be boolean (true - display default icon, false - don't display icon at all), string (display custom icon), element (display custom element as icon)
110
- */
111
- statusIcon: r.oneOfType([
112
- r.string,
113
- r.element,
114
- r.bool
115
- ]),
116
- /**
117
- * Disable display of status icon
118
- */
119
- noIcon: r.bool,
120
- className: r.string,
121
- size: r.oneOf(["small", "medium", "large"]),
122
- /**
123
- * When `status` is not defined color of alert can be defined with `color` prop
124
- */
125
- color: r.oneOf([
126
- "primary",
127
- "secondary",
128
- "success",
129
- "danger",
130
- "warning",
131
- "information",
132
- "neutral",
133
- "gray"
134
- ])
135
- };
136
104
  export {
137
- z as default
105
+ j as default
138
106
  };
package/dist/Avatar.cjs CHANGED
@@ -1,16 +1,16 @@
1
- "use strict";const n=require("react/jsx-runtime"),T=require("react"),i=require("./index-BpbMKBf_.cjs"),P=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-RnrgDDZP.cjs"),I=require("./Icon.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=P.styled.div`
2
- border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
1
+ "use strict";const s=require("react/jsx-runtime"),b=require("react"),I=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-RnrgDDZP.cjs"),$=require("./Icon.cjs"),w=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=I.styled.div`
2
+ border-radius: ${e=>t.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
3
3
  color: white;
4
4
  display: inline-flex;
5
5
  justify-content: center;
6
6
  align-items: center;
7
- height: ${e=>e.sizeInUnits?e.sizeInUnits:s.getSizeValueWithUnits(e.theme,e.size)};
8
- width: ${e=>e.sizeInUnits?e.sizeInUnits:s.getSizeValueWithUnits(e.theme,e.size)};
9
- ${e=>e.disabled===!0&&s.getDisabledStateCss(e.theme)};
10
- background-color: ${e=>!e.disabled&&s.getColorRgbaValue(e.theme,"Chip",e.color,"enabled","text")};
7
+ height: ${e=>e.sizeInUnits?e.sizeInUnits:t.getSizeValueWithUnits(e.theme,e.size)};
8
+ width: ${e=>e.sizeInUnits?e.sizeInUnits:t.getSizeValueWithUnits(e.theme,e.size)};
9
+ ${e=>e.disabled===!0&&t.getDisabledStateCss(e.theme)};
10
+ background-color: ${e=>!e.disabled&&t.getColorRgbaValue(e.theme,"Chip",e.color,"enabled","text")};
11
11
  overflow: hidden;
12
12
  & img {
13
- height: ${e=>e.sizeInUnits?e.sizeInUnits:s.getSizeValueWithUnits(e.theme,e.size)};
14
- width: ${e=>e.sizeInUnits?e.sizeInUnits:s.getSizeValueWithUnits(e.theme,e.size)};
13
+ height: ${e=>e.sizeInUnits?e.sizeInUnits:t.getSizeValueWithUnits(e.theme,e.size)};
14
+ width: ${e=>e.sizeInUnits?e.sizeInUnits:t.getSizeValueWithUnits(e.theme,e.size)};
15
15
  }
16
- `,a=T.forwardRef((e,l)=>{const{image:r,icon:c="user",sizeInUnits:t,borderRadius:u="curved",onFocus:d=()=>{},onBlur:m=()=>{},onClick:g=()=>{},size:o="small",color:h="primary",className:y="",style:z={},...b}=e,U={theme:f.useTheme(),color:h,style:z,size:o,sizeInUnits:t,className:"lnc-ui-avatar "+y};return n.jsx(x,{ref:l,...U,borderRadius:u,onClick:g,onFocus:d,onBlur:m,...b,children:r?n.jsx("img",{src:r}):n.jsx(I,{icon:c,size:o,sizeInUnits:t?`calc(${t} / 2)`:null})})});a.propTypes={image:i.PropTypes.string,icon:i.PropTypes.string,tabIndex:i.PropTypes.number,sizeInUnits:i.PropTypes.string,disabled:i.PropTypes.bool,borderRadius:i.PropTypes.oneOf(["slight","regular","edged","curved","none"]),onBlur:i.PropTypes.func,onFocus:i.PropTypes.func,onClick:i.PropTypes.func,className:i.PropTypes.string,style:i.PropTypes.object,size:i.PropTypes.oneOf(["small","medium","large"]),color:i.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"])};module.exports=a;
16
+ `,y=b.forwardRef((e,l)=>{const{image:n,icon:a="user",sizeInUnits:i,borderRadius:c="curved",onFocus:u=()=>{},onBlur:d=()=>{},onClick:o=()=>{},size:r="small",color:h="primary",className:m="",style:z={},...g}=e,U={theme:w.useTheme(),color:h,style:z,size:r,sizeInUnits:i,className:"lnc-ui-avatar "+m};return s.jsx(x,{ref:l,...U,borderRadius:c,onClick:o,onFocus:u,onBlur:d,...g,children:n?s.jsx("img",{src:n}):s.jsx($,{icon:a,size:r,sizeInUnits:i?`calc(${i} / 2)`:null})})});module.exports=y;