@ztwoint/z-ui 0.1.26 → 0.1.28

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 (189) hide show
  1. package/dist/components/assets/icons/chevron-left.d.ts +7 -0
  2. package/dist/components/assets/icons/chevron-left.js +20 -0
  3. package/dist/components/assets/icons/chevron-right.js +30 -0
  4. package/dist/components/assets/icons/circle-check.js +32 -0
  5. package/dist/components/assets/icons/double-chevron-left.d.ts +7 -0
  6. package/dist/components/assets/icons/double-chevron-left.js +24 -0
  7. package/dist/components/assets/icons/double-chevron-right.d.ts +7 -0
  8. package/dist/components/assets/icons/double-chevron-right.js +24 -0
  9. package/dist/components/assets/icons/info-icon.js +16 -0
  10. package/dist/components/assets/icons/magnifier-icon.js +16 -0
  11. package/dist/components/assets/icons/sub-nav-indicator.d.ts +3 -2
  12. package/dist/components/assets/icons/sub-nav-indicator.js +26 -41
  13. package/dist/components/button/button.d.ts +1 -1
  14. package/dist/components/button/button.js +45 -30
  15. package/dist/components/collapsible-side-nav-bar/side-nav-bar-content.js +16 -16
  16. package/dist/components/collapsible-side-nav-bar/side-nav-bar-footer.js +1 -1
  17. package/dist/components/collapsible-side-nav-bar/side-nav-bar-group.js +24 -16
  18. package/dist/components/collapsible-side-nav-bar/side-nav-bar-header.js +60 -54
  19. package/dist/components/collapsible-side-nav-bar/side-nav-bar-item.js +61 -62
  20. package/dist/components/collapsible-side-nav-bar/side-nav-bar-provider.js +23 -23
  21. package/dist/components/collapsible-side-nav-bar/side-nav-bar.d.ts +1 -1
  22. package/dist/components/collapsible-side-nav-bar/side-nav-bar.js +14 -14
  23. package/dist/components/dialog/dialog.js +1 -1
  24. package/dist/components/dropdown/helpers/hover-card.js +34 -0
  25. package/dist/components/dropdown/z2-dropdown.d.ts +1 -1
  26. package/dist/components/dropdown/z2-dropdown.js +245 -0
  27. package/dist/components/dropdown-menu/z2-dropdown-menu.js +255 -0
  28. package/dist/components/nav-header/nav-header.js +7 -7
  29. package/dist/components/table/components/cell/boolean-cell.d.ts +7 -0
  30. package/dist/components/table/components/cell/boolean-cell.js +7 -0
  31. package/dist/components/table/components/cell/index.d.ts +3 -0
  32. package/dist/components/table/components/cell/number-cell.d.ts +7 -0
  33. package/dist/components/table/components/cell/number-cell.js +5 -0
  34. package/dist/components/table/components/cell/text-cell.d.ts +7 -0
  35. package/dist/components/table/components/cell/text-cell.js +5 -0
  36. package/dist/components/table/components/index.d.ts +11 -0
  37. package/dist/components/table/components/pagination/components/index.d.ts +3 -0
  38. package/dist/components/table/components/pagination/components/pagination-info.d.ts +4 -0
  39. package/dist/components/table/components/pagination/components/pagination-info.js +27 -0
  40. package/dist/components/table/components/pagination/components/pagination-quick-jumper.d.ts +4 -0
  41. package/dist/components/table/components/pagination/components/pagination-quick-jumper.hook.d.ts +6 -0
  42. package/dist/components/table/components/pagination/components/pagination-quick-jumper.hook.js +24 -0
  43. package/dist/components/table/components/pagination/components/pagination-quick-jumper.js +35 -0
  44. package/dist/components/table/components/pagination/index.d.ts +6 -0
  45. package/dist/components/table/components/pagination/pagination.const.d.ts +26 -0
  46. package/dist/components/table/components/pagination/pagination.const.js +22 -0
  47. package/dist/components/table/components/pagination/pagination.d.ts +4 -0
  48. package/dist/components/table/components/pagination/pagination.hook.d.ts +5 -0
  49. package/dist/components/table/components/pagination/pagination.hook.js +22 -0
  50. package/dist/components/table/components/pagination/pagination.js +112 -0
  51. package/dist/components/table/components/pagination/pagination.type.d.ts +33 -0
  52. package/dist/components/table/components/pagination/pagination.utils.d.ts +7 -0
  53. package/dist/components/table/components/pagination/pagination.utils.js +35 -0
  54. package/dist/components/table/components/table-cell.d.ts +15 -0
  55. package/dist/components/table/components/table-cell.js +45 -0
  56. package/dist/components/table/components/table-empty-state.d.ts +7 -0
  57. package/dist/components/table/components/table-empty-state.js +6 -0
  58. package/dist/components/table/components/table-filter/filters/boolean.d.ts +3 -0
  59. package/dist/components/table/components/table-filter/filters/boolean.js +31 -0
  60. package/dist/components/table/components/table-filter/filters/index.d.ts +3 -0
  61. package/dist/components/table/components/table-filter/filters/number.d.ts +3 -0
  62. package/dist/components/table/components/table-filter/filters/number.js +28 -0
  63. package/dist/components/table/components/table-filter/filters/text.d.ts +3 -0
  64. package/dist/components/table/components/table-filter/filters/text.js +28 -0
  65. package/dist/components/table/components/table-filter/index.d.ts +1 -0
  66. package/dist/components/table/components/table-filter/table-filter.d.ts +9 -0
  67. package/dist/components/table/components/table-filter/table-filter.hook.d.ts +15 -0
  68. package/dist/components/table/components/table-filter/table-filter.hook.js +34 -0
  69. package/dist/components/table/components/table-filter/table-filter.js +105 -0
  70. package/dist/components/table/components/table-filter/table-filter.type.d.ts +18 -0
  71. package/dist/components/table/components/table-footer-content.d.ts +7 -0
  72. package/dist/components/table/components/table-footer-content.js +9 -0
  73. package/dist/components/table/components/table-footer.d.ts +7 -0
  74. package/dist/components/table/components/table-footer.js +6 -0
  75. package/dist/components/table/components/table-header/index.d.ts +2 -0
  76. package/dist/components/table/components/table-header/table-header.d.ts +9 -0
  77. package/dist/components/table/components/table-header/table-header.js +27 -0
  78. package/dist/components/table/components/table-header/table-header.utils.d.ts +5 -0
  79. package/dist/components/table/components/table-header/table-header.utils.js +15 -0
  80. package/dist/components/table/components/table-header/table-sort-icon.d.ts +8 -0
  81. package/dist/components/table/components/table-header/table-sort-icon.js +13 -0
  82. package/dist/components/table/components/table-header-content.d.ts +7 -0
  83. package/dist/components/table/components/table-header-content.js +9 -0
  84. package/dist/components/table/components/table-header-wrapper.d.ts +7 -0
  85. package/dist/components/table/components/table-header-wrapper.js +9 -0
  86. package/dist/components/table/components/table-loading-state.d.ts +7 -0
  87. package/dist/components/table/components/table-loading-state.js +9 -0
  88. package/dist/components/table/components/table-row.d.ts +11 -0
  89. package/dist/components/table/components/table-row.js +23 -0
  90. package/dist/components/table/index.d.ts +9 -0
  91. package/dist/components/table/table-provider.d.ts +26 -0
  92. package/dist/components/table/table-provider.js +45 -0
  93. package/dist/components/table/table.const.d.ts +24 -0
  94. package/dist/components/table/table.const.js +27 -0
  95. package/dist/components/table/table.context.d.ts +7 -0
  96. package/dist/components/table/table.context.js +11 -0
  97. package/dist/components/table/table.d.ts +4 -0
  98. package/dist/components/table/table.js +39 -0
  99. package/dist/components/table/table.type.d.ts +63 -0
  100. package/dist/components/table/table.utils.d.ts +3 -0
  101. package/dist/components/table/table.utils.js +5 -0
  102. package/dist/css/config/colors/components/select.css +15 -0
  103. package/dist/css/config/colors/defaults.css +378 -137
  104. package/dist/css/config/colors/semantic-colors.css +356 -0
  105. package/dist/css/config/components/button.css +152 -0
  106. package/dist/css/config/components/index.css +1 -0
  107. package/dist/css/config/config-deprecated.css +41 -0
  108. package/dist/css/config/config.css +4 -18
  109. package/dist/css/config/typography/2xl.css +7 -0
  110. package/dist/css/config/typography/3xl.css +7 -0
  111. package/dist/css/config/typography/4xl.css +7 -0
  112. package/dist/css/config/typography/base.css +7 -0
  113. package/dist/css/config/typography/lg.css +7 -0
  114. package/dist/css/config/typography/sm.css +7 -0
  115. package/dist/css/config/typography/xl.css +7 -0
  116. package/dist/css/config/typography/xs.css +7 -0
  117. package/dist/css/styles/tailwind.css +1 -1
  118. package/dist/devComponents/navigation/index.d.ts +1 -0
  119. package/dist/devComponents/navigation/navigation.d.ts +1 -0
  120. package/dist/index.d.ts +41 -7
  121. package/dist/index.js +176 -92
  122. package/dist/lib/index.d.ts +3 -0
  123. package/dist/lib/theme.hook.d.ts +8 -0
  124. package/dist/lib/theme.hook.js +50 -0
  125. package/dist/node_modules/@heroicons/react/24/solid/esm/CheckCircleIcon.js +26 -0
  126. package/dist/node_modules/@heroicons/react/24/solid/esm/XCircleIcon.js +26 -0
  127. package/dist/routes/default.d.ts +2 -0
  128. package/dist/routes/index.d.ts +2 -0
  129. package/dist/routes/table.d.ts +2 -0
  130. package/dist/sample/text-cell.d.ts +3 -0
  131. package/dist/types/components/assets/icons/chevron-left.d.ts +7 -0
  132. package/dist/types/components/assets/icons/double-chevron-left.d.ts +7 -0
  133. package/dist/types/components/assets/icons/double-chevron-right.d.ts +7 -0
  134. package/dist/types/components/assets/icons/sub-nav-indicator.d.ts +3 -2
  135. package/dist/types/components/button/button.d.ts +1 -1
  136. package/dist/types/components/collapsible-side-nav-bar/side-nav-bar.d.ts +1 -1
  137. package/dist/types/components/dropdown/z2-dropdown.d.ts +1 -1
  138. package/dist/types/components/table/components/cell/boolean-cell.d.ts +7 -0
  139. package/dist/types/components/table/components/cell/index.d.ts +3 -0
  140. package/dist/types/components/table/components/cell/number-cell.d.ts +7 -0
  141. package/dist/types/components/table/components/cell/text-cell.d.ts +7 -0
  142. package/dist/types/components/table/components/index.d.ts +11 -0
  143. package/dist/types/components/table/components/pagination/components/index.d.ts +3 -0
  144. package/dist/types/components/table/components/pagination/components/pagination-info.d.ts +4 -0
  145. package/dist/types/components/table/components/pagination/components/pagination-quick-jumper.d.ts +4 -0
  146. package/dist/types/components/table/components/pagination/components/pagination-quick-jumper.hook.d.ts +6 -0
  147. package/dist/types/components/table/components/pagination/index.d.ts +6 -0
  148. package/dist/types/components/table/components/pagination/pagination.const.d.ts +26 -0
  149. package/dist/types/components/table/components/pagination/pagination.d.ts +4 -0
  150. package/dist/types/components/table/components/pagination/pagination.hook.d.ts +5 -0
  151. package/dist/types/components/table/components/pagination/pagination.type.d.ts +33 -0
  152. package/dist/types/components/table/components/pagination/pagination.utils.d.ts +7 -0
  153. package/dist/types/components/table/components/table-cell.d.ts +15 -0
  154. package/dist/types/components/table/components/table-empty-state.d.ts +7 -0
  155. package/dist/types/components/table/components/table-filter/filters/boolean.d.ts +3 -0
  156. package/dist/types/components/table/components/table-filter/filters/index.d.ts +3 -0
  157. package/dist/types/components/table/components/table-filter/filters/number.d.ts +3 -0
  158. package/dist/types/components/table/components/table-filter/filters/text.d.ts +3 -0
  159. package/dist/types/components/table/components/table-filter/index.d.ts +1 -0
  160. package/dist/types/components/table/components/table-filter/table-filter.d.ts +9 -0
  161. package/dist/types/components/table/components/table-filter/table-filter.hook.d.ts +15 -0
  162. package/dist/types/components/table/components/table-filter/table-filter.type.d.ts +18 -0
  163. package/dist/types/components/table/components/table-footer-content.d.ts +7 -0
  164. package/dist/types/components/table/components/table-footer.d.ts +7 -0
  165. package/dist/types/components/table/components/table-header/index.d.ts +2 -0
  166. package/dist/types/components/table/components/table-header/table-header.d.ts +10 -0
  167. package/dist/types/components/table/components/table-header/table-header.utils.d.ts +5 -0
  168. package/dist/types/components/table/components/table-header/table-sort-icon.d.ts +8 -0
  169. package/dist/types/components/table/components/table-header-content.d.ts +7 -0
  170. package/dist/types/components/table/components/table-header-wrapper.d.ts +7 -0
  171. package/dist/types/components/table/components/table-loading-state.d.ts +7 -0
  172. package/dist/types/components/table/components/table-row.d.ts +11 -0
  173. package/dist/types/components/table/index.d.ts +9 -0
  174. package/dist/types/components/table/table-provider.d.ts +26 -0
  175. package/dist/types/components/table/table.const.d.ts +24 -0
  176. package/dist/types/components/table/table.context.d.ts +7 -0
  177. package/dist/types/components/table/table.d.ts +4 -0
  178. package/dist/types/components/table/table.type.d.ts +63 -0
  179. package/dist/types/components/table/table.utils.d.ts +3 -0
  180. package/dist/types/devComponents/navigation/index.d.ts +1 -0
  181. package/dist/types/devComponents/navigation/navigation.d.ts +1 -0
  182. package/dist/types/index.d.ts +41 -7
  183. package/dist/types/lib/index.d.ts +3 -0
  184. package/dist/types/lib/theme.hook.d.ts +8 -0
  185. package/dist/types/routes/default.d.ts +2 -0
  186. package/dist/types/routes/index.d.ts +2 -0
  187. package/dist/types/routes/table.d.ts +2 -0
  188. package/dist/types/sample/text-cell.d.ts +3 -0
  189. package/package.json +3 -1
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ title?: string;
5
+ };
6
+ declare function ChevronLeft({ fill, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
7
+ export default ChevronLeft;
@@ -0,0 +1,20 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ function h({ fill: r = "currentColor", title: t = "chevron left", ...o }) {
3
+ return /* @__PURE__ */ n("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...o, children: [
4
+ /* @__PURE__ */ e("title", { children: t }),
5
+ /* @__PURE__ */ e("g", { fill: r, children: /* @__PURE__ */ e(
6
+ "path",
7
+ {
8
+ d: "M8.75 11.55L4.2 7l4.55-4.55",
9
+ fill: "none",
10
+ stroke: r,
11
+ strokeLinecap: "round",
12
+ strokeLinejoin: "round",
13
+ strokeWidth: "2"
14
+ }
15
+ ) })
16
+ ] });
17
+ }
18
+ export {
19
+ h as default
20
+ };
@@ -0,0 +1,30 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ function h({
3
+ fill: o = "#5D5D5D",
4
+ secondaryfill: n,
5
+ strokewidth: s = 1,
6
+ width: r = "14",
7
+ height: e = "14",
8
+ ...i
9
+ }) {
10
+ return /* @__PURE__ */ t(
11
+ "svg",
12
+ {
13
+ height: e,
14
+ width: r,
15
+ viewBox: "0 0 14 14",
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ ...i,
18
+ children: /* @__PURE__ */ t(
19
+ "path",
20
+ {
21
+ d: "M4.95778 2.41478C5.26089 2.11174 5.75228 2.11174 6.05539 2.41478L10.0919 6.45123C10.3948 6.75435 10.3949 7.24576 10.0919 7.54885L6.05539 11.5853C5.7523 11.8882 5.26087 11.8882 4.95778 11.5853C4.65477 11.2822 4.65483 10.7908 4.95778 10.4877L8.44543 7.00004L4.95778 3.51239C4.65472 3.20925 4.65467 2.71788 4.95778 2.41478Z",
22
+ fill: o
23
+ }
24
+ )
25
+ }
26
+ );
27
+ }
28
+ export {
29
+ h as default
30
+ };
@@ -0,0 +1,32 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ function d({
3
+ fill: r = "currentColor",
4
+ secondaryfill: i,
5
+ strokewidth: l = 1,
6
+ width: c = "1em",
7
+ height: t = "1em",
8
+ ...o
9
+ }) {
10
+ return /* @__PURE__ */ e(
11
+ "svg",
12
+ {
13
+ height: t,
14
+ id: "circle-check",
15
+ width: c,
16
+ viewBox: "0 0 12 12",
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ ...o,
19
+ children: /* @__PURE__ */ e("g", { fill: r, children: /* @__PURE__ */ e(
20
+ "path",
21
+ {
22
+ d: "m6,0C2.691,0,0,2.691,0,6s2.691,6,6,6,6-2.691,6-6S9.309,0,6,0Zm2.853,4.45l-3.003,4c-.13.174-.329.282-.546.298-.019.001-.036.002-.054.002-.198,0-.389-.078-.53-.219l-1.503-1.5c-.293-.292-.293-.768,0-1.061s.768-.294,1.062,0l.892.89,2.484-3.31c.248-.331.718-.4,1.05-.149.331.249.398.719.149,1.05Z",
23
+ fill: r,
24
+ strokeWidth: "0"
25
+ }
26
+ ) })
27
+ }
28
+ );
29
+ }
30
+ export {
31
+ d as default
32
+ };
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ title?: string;
5
+ };
6
+ declare function DoubleChevronLeft({ fill, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
7
+ export default DoubleChevronLeft;
@@ -0,0 +1,24 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ function l({
3
+ fill: o = "currentColor",
4
+ title: r = "double chevron left",
5
+ ...t
6
+ }) {
7
+ return /* @__PURE__ */ n("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
8
+ /* @__PURE__ */ e("title", { children: r }),
9
+ /* @__PURE__ */ e("g", { fill: o, children: /* @__PURE__ */ e(
10
+ "path",
11
+ {
12
+ d: "M6.75 11.55L2.2 7l4.55-4.55M11.75 11.55L7.2 7l4.55-4.55",
13
+ fill: "none",
14
+ stroke: o,
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round",
17
+ strokeWidth: "2"
18
+ }
19
+ ) })
20
+ ] });
21
+ }
22
+ export {
23
+ l as default
24
+ };
@@ -0,0 +1,7 @@
1
+ import { SVGProps } from 'react';
2
+ type IconProps = SVGProps<SVGSVGElement> & {
3
+ secondaryfill?: string;
4
+ title?: string;
5
+ };
6
+ declare function DoubleChevronRight({ fill, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
7
+ export default DoubleChevronRight;
@@ -0,0 +1,24 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ function h({
3
+ fill: r = "currentColor",
4
+ title: o = "double chevron right",
5
+ ...t
6
+ }) {
7
+ return /* @__PURE__ */ n("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
8
+ /* @__PURE__ */ e("title", { children: o }),
9
+ /* @__PURE__ */ e("g", { fill: r, children: /* @__PURE__ */ e(
10
+ "path",
11
+ {
12
+ d: "M7.25 2.45L11.8 7l-4.55 4.55M2.25 2.45L6.8 7l-4.55 4.55",
13
+ fill: "none",
14
+ stroke: r,
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round",
17
+ strokeWidth: "2"
18
+ }
19
+ ) })
20
+ ] });
21
+ }
22
+ export {
23
+ h as default
24
+ };
@@ -0,0 +1,16 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ const l = ({ fill: o = "currentColor", title: C = "Info", ...t }) => /* @__PURE__ */ n("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
3
+ /* @__PURE__ */ e("title", { children: C }),
4
+ /* @__PURE__ */ e(
5
+ "path",
6
+ {
7
+ fillRule: "evenodd",
8
+ clipRule: "evenodd",
9
+ d: "M7 2.12695C10.0877 2.12696 12.6003 4.63964 12.6003 7.72729C12.6003 10.815 10.0877 13.3276 7 13.3276C3.9123 13.3276 1.39966 10.815 1.39966 7.72729C1.3997 4.63963 3.91233 2.12695 7 2.12695ZM7 6.67712C6.6129 6.67712 6.30017 6.99141 6.30017 7.37781V10.5275C6.30022 10.9138 6.61293 11.2273 7 11.2273C7.38706 11.2273 7.69978 10.9138 7.69983 10.5275V7.37781C7.69983 6.99142 7.38709 6.67714 7 6.67712ZM7 4.22729C6.51773 4.22729 6.12505 4.62003 6.125 5.10229C6.125 5.58459 6.5177 5.97729 7 5.97729C7.48229 5.97728 7.875 5.58459 7.875 5.10229C7.87495 4.62004 7.48226 4.22731 7 4.22729Z",
10
+ fill: o
11
+ }
12
+ )
13
+ ] });
14
+ export {
15
+ l as InfoIcon
16
+ };
@@ -0,0 +1,16 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ const l = ({ fill: r = "currentColor", title: t = "Search", ...C }) => /* @__PURE__ */ i("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...C, children: [
3
+ /* @__PURE__ */ e("title", { children: t }),
4
+ /* @__PURE__ */ e(
5
+ "path",
6
+ {
7
+ fillRule: "evenodd",
8
+ clipRule: "evenodd",
9
+ d: "M5.94971 1.93848C8.36588 1.93848 10.3246 3.89733 10.3247 6.31348C10.3247 7.20512 10.0573 8.0341 9.59924 8.72571L12.1687 11.2952L12.2285 11.361C12.5089 11.7046 12.4891 12.2121 12.1687 12.5325C11.8483 12.8529 11.3409 12.8727 10.9972 12.5923L10.9314 12.5325L8.36194 9.96301C7.67032 10.4211 6.84138 10.6885 5.94971 10.6885C3.53354 10.6884 1.57471 8.72967 1.57471 6.31348C1.57482 3.89738 3.53361 1.93856 5.94971 1.93848ZM5.94971 3.68848C4.5001 3.68856 3.32482 4.86388 3.32471 6.31348C3.32471 7.76317 4.50003 8.93839 5.94971 8.93848C7.39946 8.93848 8.57471 7.76322 8.57471 6.31348C8.57459 4.86383 7.39938 3.68848 5.94971 3.68848Z",
10
+ fill: r
11
+ }
12
+ )
13
+ ] });
14
+ export {
15
+ l as MagnifierIcon
16
+ };
@@ -1,7 +1,8 @@
1
1
  import { SVGProps } from 'react';
2
2
  type IconProps = SVGProps<SVGSVGElement> & {
3
3
  secondaryfill?: string;
4
+ strokewidth?: number;
4
5
  title?: string;
5
6
  };
6
- declare function AngleDottedCopy({ fill, secondaryfill, title, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
7
- export default AngleDottedCopy;
7
+ declare function SubNavIndicator({ fill, secondaryfill: _secondaryfill, strokewidth: _strokewidth, width, height, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export default SubNavIndicator;
@@ -1,48 +1,33 @@
1
- import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
- function d({
3
- fill: h = "currentColor",
4
- secondaryfill: t,
5
- title: e = "badge 13",
6
- ...l
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ function l({
3
+ fill: t = "#5D5D5D",
4
+ secondaryfill: s,
5
+ strokewidth: o = 2,
6
+ width: e = "7",
7
+ height: i = "7",
8
+ ...n
7
9
  }) {
8
- return t = t || h, /* @__PURE__ */ i("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...l, children: [
9
- /* @__PURE__ */ a("title", { children: e }),
10
- /* @__PURE__ */ i("g", { fill: h, children: [
11
- /* @__PURE__ */ a(
10
+ return /* @__PURE__ */ r(
11
+ "svg",
12
+ {
13
+ height: i,
14
+ width: e,
15
+ viewBox: "0 0 9 10",
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ ...n,
18
+ children: /* @__PURE__ */ r("g", { fill: "none", children: /* @__PURE__ */ r(
12
19
  "path",
13
20
  {
14
- d: "M2.15 1.56a0.58 0.58 0 0 1 0.58 0.58v8.2c0 0.54 0.44 0.98 0.98 0.97h8.19a0.58 0.58 0 0 1 0 1.17h-8.19a2.15 2.15 0 0 1-2.15-2.14v-8.19a0.58 0.58 0 0 1 0.59-0.59z",
15
- fill: h,
16
- fillRule: "evenodd"
21
+ d: "M1 1.36365V6.36365C1 7.46822 1.89543 8.36365 3 8.36365H8",
22
+ stroke: t,
23
+ strokeLinecap: "round",
24
+ strokeOpacity: "1",
25
+ strokeWidth: o
17
26
  }
18
- ),
19
- /* @__PURE__ */ a(
20
- "path",
21
- {
22
- d: "M4.23 7.44a0.58 0.58 0 1 0 0-1.17 0.58 0.58 0 0 0 0 1.17z",
23
- fill: t,
24
- fillOpacity: "0.000"
25
- }
26
- ),
27
- /* @__PURE__ */ a(
28
- "path",
29
- {
30
- d: "M6.01 8.62a0.58 0.58 0 1 0 0-1.17 0.58 0.58 0 0 0 0 1.17z",
31
- fill: t,
32
- fillOpacity: "0.000"
33
- }
34
- ),
35
- /* @__PURE__ */ a(
36
- "path",
37
- {
38
- d: "M7.19 10.39a0.58 0.58 0 1 0 0-1.17 0.58 0.58 0 0 0 0 1.17z",
39
- fill: t,
40
- fillOpacity: "0.000"
41
- }
42
- )
43
- ] })
44
- ] });
27
+ ) })
28
+ }
29
+ );
45
30
  }
46
31
  export {
47
- d as default
32
+ l as default
48
33
  };
@@ -6,7 +6,7 @@ declare const buttonVariants: (props?: ({
6
6
  size?: "small" | "large" | null | undefined;
7
7
  iconOnly?: boolean | null | undefined;
8
8
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
9
- export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style' | 'type'>, Omit<VariantProps<typeof buttonVariants>, 'iconOnly'> {
9
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Omit<VariantProps<typeof buttonVariants>, 'iconOnly'> {
10
10
  asChild?: boolean;
11
11
  leftIcon?: React.ReactNode;
12
12
  rightIcon?: React.ReactNode;
@@ -1,9 +1,9 @@
1
- import { jsx as e, jsxs as x, Fragment as g } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as v, Fragment as h } from "react/jsx-runtime";
2
2
  import w from "react";
3
3
  import { Slot as O } from "@radix-ui/react-slot";
4
4
  import { cva as z } from "class-variance-authority";
5
- import { cn as n } from "../../lib/utils.js";
6
- const N = z(
5
+ import { cn as d } from "../../lib/utils.js";
6
+ const k = z(
7
7
  "box-border h-7.5 leading-none-medium-sm flex items-center justify-center whitespace-nowrap rounded-lg select-none hover:cursor-pointer active:outline-none border-solid",
8
8
  {
9
9
  variants: {
@@ -15,10 +15,10 @@ const N = z(
15
15
  ghost: [""]
16
16
  },
17
17
  shade: {
18
- neutral: "button-primary-neutral-surface-default border-black disabled:border-none text-inverted-primary hover:button-primary-neutral-surface-hover active:button-primary-neutral-surface-pressed disabled:button-primary-neutral-surface-disabled disabled:text-neutral-muted",
19
- brand: "button-primary-brand-surface-default border-(--color-accent-600) text-inverted-primary hover:button-primary-brand-surface-hover active:button-primary-brand-surface-pressed disabled:button-primary-brand-surface-disabled disabled:text-neutral-muted",
20
- danger: "button-primary-danger-surface-default border-(--color-red-600) text-inverted-primary hover:button-primary-danger-surface-hover active:button-primary-danger-surface-pressed disabled:button-primary-danger-surface-disabled disabled:text-neutral-muted",
21
- neutralGhost: "text-neutral-primary hover:text-neutral-secondary active:text-neutral-muted disabled:text-neutral-muted"
18
+ brand: "bg-button-primary-brand-surface-default border-button-primary-brand-surface-default text-text-inverted-primary hover:bg-button-primary-brand-surface-hover active:bg-button-primary-brand-surface-pressed disabled:bg-button-primary-brand-surface-disabled disabled:text-text-neutral-muted disabled:border-button-primary-brand-surface-disabled",
19
+ neutral: "bg-button-primary-neutral-surface-default border-button-primary-neutral-surface-default disabled:border-none text-text-inverted-primary hover:bg-button-primary-neutral-surface-hover active:bg-button-primary-neutral-surface-pressed disabled:bg-button-primary-neutral-surface-disabled disabled:text-text-neutral-muted",
20
+ danger: "bg-button-primary-danger-surface-default border-button-primary-danger-stroke-default text-text-inverted-primary hover:bg-button-primary-danger-surface-hover active:bg-button-primary-danger-surface-pressed disabled:bg-button-primary-danger-surface-disabled disabled:text-text-neutral-muted",
21
+ neutralGhost: "border-none text-text-neutral-primary hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted hover:bg-transparent"
22
22
  },
23
23
  size: {
24
24
  large: "gap-1",
@@ -37,7 +37,7 @@ const N = z(
37
37
  {
38
38
  iconOnly: !0,
39
39
  size: "small",
40
- class: "p-1.5"
40
+ class: "p-1.5 h-6.5"
41
41
  },
42
42
  {
43
43
  iconOnly: !1,
@@ -52,17 +52,32 @@ const N = z(
52
52
  {
53
53
  variant: "stroke",
54
54
  shade: "neutral",
55
- class: "border-none shadow-default button-secondary-surface-default text-default-primary hover:button-secondary-surface-hover hover:text-default-secondary active:button-secondary-surface-pressed active:text-default-disabled disabled:button-secondary-surface-disabled disabled:text-default-disabled"
55
+ class: "border-none shadow-default dark:shadow-none bg-button-secondary-surface-default text-text-neutral-primary hover:bg-button-secondary-surface-hover hover:text-text-neutral-primary active:bg-button-secondary-surface-pressed active:text-text-neutral-primary disabled:bg-button-secondary-surface-disabled disabled:text-text-neutral-muted"
56
56
  },
57
57
  {
58
58
  variant: "stroke",
59
59
  shade: "danger",
60
- class: "border-none shadow-default button-secondary-surface-default text-default-danger hover:button-secondary-surface-hover hover:text-default-danger active:button-secondary-surface-pressed active:text-default-danger disabled:button-secondary-surface-disabled disabled:text-default-disabled"
60
+ class: "border-none shadow-default bg-button-secondary-surface-default text-text-danger-secondary hover:bg-button-secondary-surface-hover hover:text-text-secondary active:bg-button-secondary-surface-pressed active:text-text-primary disabled:bg-button-secondary-surface-disabled disabled:text-text-neutral-muted"
61
+ },
62
+ {
63
+ variant: "stroke",
64
+ shade: "brand",
65
+ class: "border-none shadow-default bg-button-secondary-surface-default text-text-brand-secondary hover:bg-button-secondary-surface-hover hover:text-text-secondary active:bg-button-secondary-surface-pressed active:text-text-primary disabled:bg-button-secondary-surface-disabled disabled:text-text-neutral-muted"
61
66
  },
62
67
  {
63
68
  variant: "ghost",
64
69
  shade: "neutral",
65
- class: "bg-transparent text-default-primary hover:text-default-secondary active:text-default-disabled disabled:text-default-disabled"
70
+ class: "bg-transparent text-text-neutral-primary hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted hover:bg-transparent active:bg-transparent"
71
+ },
72
+ {
73
+ variant: "ghost",
74
+ shade: "brand",
75
+ class: "bg-transparent text-text-brand-primary hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted hover:bg-transparent active:bg-transparent"
76
+ },
77
+ {
78
+ variant: "ghost",
79
+ shade: "danger",
80
+ class: "bg-transparent text-text-danger-primary hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted hover:bg-transparent active:bg-transparent"
66
81
  }
67
82
  ],
68
83
  defaultVariants: {
@@ -72,31 +87,31 @@ const N = z(
72
87
  iconOnly: !1
73
88
  }
74
89
  }
75
- ), k = w.forwardRef(
90
+ ), N = w.forwardRef(
76
91
  ({
77
- className: u,
78
- shade: c,
79
- size: b,
80
- variant: f,
92
+ className: i,
93
+ shade: b = "neutral",
94
+ size: c,
95
+ variant: x = "filled",
81
96
  asChild: o = !1,
82
- leftIcon: a,
83
- rightIcon: t,
84
- label: m,
85
- children: l,
86
- ...p
97
+ leftIcon: t,
98
+ rightIcon: a,
99
+ label: p,
100
+ children: u,
101
+ ...m
87
102
  }, y) => {
88
- const v = o ? O : "button", r = m || l, s = !r && !!(a || t), i = s ? a || t : null, h = n(
89
- N({ shade: c, size: b, variant: f, iconOnly: s, className: u })
90
- ), d = "w-3.5 h-3.5";
91
- return /* @__PURE__ */ e(v, { className: h, ref: y, ...p, children: o ? l : s ? i ? /* @__PURE__ */ e("span", { className: d, children: i }) : null : /* @__PURE__ */ x(g, { children: [
92
- a && /* @__PURE__ */ e("span", { className: n(d), children: a }),
103
+ const f = o ? O : "button", r = p || u, n = !r && !!(t || a), l = n ? t || a : null, g = d(
104
+ k({ shade: b, size: c, variant: x, iconOnly: n, className: i })
105
+ ), s = "w-3.5 h-3.5";
106
+ return /* @__PURE__ */ e(f, { className: g, ref: y, ...m, children: o ? u : n ? l ? /* @__PURE__ */ e("span", { className: s, children: l }) : null : /* @__PURE__ */ v(h, { children: [
107
+ t && /* @__PURE__ */ e("span", { className: d(s), children: t }),
93
108
  r && /* @__PURE__ */ e("span", { children: r }),
94
- t && /* @__PURE__ */ e("span", { className: n(d), children: t })
109
+ a && /* @__PURE__ */ e("span", { className: d(s), children: a })
95
110
  ] }) });
96
111
  }
97
112
  );
98
- k.displayName = "Button";
113
+ N.displayName = "Button";
99
114
  export {
100
- k as Button,
101
- N as buttonVariants
115
+ N as Button,
116
+ k as buttonVariants
102
117
  };
@@ -1,29 +1,29 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import * as l from "react";
3
- import { cn as f } from "../../lib/utils.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { cn as l } from "../../lib/utils.js";
4
4
  import { useZ2SideNavBar as m } from "./context.js";
5
- const s = l.forwardRef(
6
- ({ className: e, children: r, ...o }, t) => {
7
- const { isCollapsed: i } = m();
8
- return i ? /* @__PURE__ */ a(
5
+ const s = i.forwardRef(
6
+ ({ className: e, children: o, ...r }, a) => {
7
+ const { isCollapsed: f } = m();
8
+ return f ? /* @__PURE__ */ t(
9
9
  "div",
10
10
  {
11
- ref: t,
12
- className: f(
11
+ ref: a,
12
+ className: l(
13
13
  "flex-1 overflow-y-auto flex flex-col items-start gap-2 relative w-10.5 max-w-10.5",
14
14
  "border-b border-gray-200",
15
15
  e
16
16
  ),
17
- ...o,
18
- children: r
17
+ ...r,
18
+ children: o
19
19
  }
20
- ) : /* @__PURE__ */ a(
20
+ ) : /* @__PURE__ */ t(
21
21
  "div",
22
22
  {
23
- ref: t,
24
- className: f("flex flex-col items-center flex-1 overflow-y-auto", e),
25
- ...o,
26
- children: r
23
+ ref: a,
24
+ className: l("flex flex-col flex-1 overflow-y-auto w-full", e),
25
+ ...r,
26
+ children: o
27
27
  }
28
28
  );
29
29
  }
@@ -16,7 +16,7 @@ const d = m.forwardRef(
16
16
  ...t,
17
17
  children: e
18
18
  }
19
- ) : /* @__PURE__ */ a("div", { ref: o, className: i("p-4 border-t border-gray-200", r), ...t, children: e });
19
+ ) : /* @__PURE__ */ a("div", { ref: o, className: i("p-2 border-t border-gray-200", r), ...t, children: e });
20
20
  }
21
21
  );
22
22
  d.displayName = "Z2SideNavBarFooter";
@@ -1,25 +1,33 @@
1
- import { jsx as i, jsxs as p } from "react/jsx-runtime";
2
- import * as c from "react";
1
+ import { jsx as i, jsxs as d } from "react/jsx-runtime";
2
+ import * as p from "react";
3
3
  import { cn as m } from "../../lib/utils.js";
4
- import { useZ2SideNavBar as d } from "./context.js";
5
- const f = c.forwardRef(
6
- ({ className: r, children: e, title: a, ...t }, o) => {
7
- const { isCollapsed: s } = d(), l = a && !s;
8
- return s ? /* @__PURE__ */ i(
4
+ import { useZ2SideNavBar as c } from "./context.js";
5
+ const n = p.forwardRef(
6
+ ({ className: e, children: r, title: a, ...s }, o) => {
7
+ const { isCollapsed: t } = c(), l = a && !t;
8
+ return t ? /* @__PURE__ */ i(
9
9
  "div",
10
10
  {
11
11
  ref: o,
12
- className: m("flex flex-col items-start gap-1.5 p-1.5 relative", r),
13
- ...t,
14
- children: e
12
+ className: m("flex flex-col items-start gap-1.5 p-1.5 relative", e),
13
+ ...s,
14
+ children: r
15
15
  }
16
- ) : /* @__PURE__ */ p("div", { ref: o, className: m("w-56 max-w-56 pt-2", r), ...t, children: [
17
- l && /* @__PURE__ */ i("h3", { className: "text-sm font-medium text-(--color-neutral-600) px-2 pb-2", children: a }),
18
- e
19
- ] });
16
+ ) : /* @__PURE__ */ d(
17
+ "div",
18
+ {
19
+ ref: o,
20
+ className: m("p-2 flex flex-col gap-1.5 items-stretch", e),
21
+ ...s,
22
+ children: [
23
+ l && /* @__PURE__ */ i("div", { className: "leading-none-medium-sm text-neutral-secondary p-2 pb-1", children: a }),
24
+ r
25
+ ]
26
+ }
27
+ );
20
28
  }
21
29
  );
22
- f.displayName = "Z2SideNavBarGroup";
30
+ n.displayName = "Z2SideNavBarGroup";
23
31
  export {
24
- f as Z2SideNavBarGroup
32
+ n as Z2SideNavBarGroup
25
33
  };