@brightlocal/ui-components 0.1.3 → 0.1.4

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 (143) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.js +1 -1
  3. package/dist/alert.cjs +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/blocks/data-table.cjs +1 -1
  6. package/dist/blocks/data-table.js +1 -1
  7. package/dist/blocks/sidebar.cjs +1 -1
  8. package/dist/blocks/sidebar.d.ts +37 -306
  9. package/dist/blocks/sidebar.d.ts.map +1 -1
  10. package/dist/blocks/sidebar.js +392 -489
  11. package/dist/breadcrumb.cjs +1 -1
  12. package/dist/breadcrumb.js +1 -1
  13. package/dist/button.cjs +1 -1
  14. package/dist/button.js +1 -1
  15. package/dist/calendar.cjs +1 -1
  16. package/dist/calendar.d.ts +4 -1
  17. package/dist/calendar.d.ts.map +1 -1
  18. package/dist/calendar.js +33 -33
  19. package/dist/centred-layout.cjs +1 -1
  20. package/dist/centred-layout.d.ts +5 -18
  21. package/dist/centred-layout.d.ts.map +1 -1
  22. package/dist/centred-layout.js +21 -23
  23. package/dist/checkbox.cjs +1 -1
  24. package/dist/checkbox.js +1 -1
  25. package/dist/combobox.cjs +1 -1
  26. package/dist/combobox.d.ts +9 -17
  27. package/dist/combobox.d.ts.map +1 -1
  28. package/dist/combobox.js +104 -107
  29. package/dist/command.cjs +1 -1
  30. package/dist/command.js +1 -1
  31. package/dist/context-menu.cjs +1 -1
  32. package/dist/context-menu.js +1 -1
  33. package/dist/date-picker.cjs +1 -1
  34. package/dist/date-picker.js +1 -1
  35. package/dist/dialog.cjs +1 -1
  36. package/dist/dialog.js +1 -1
  37. package/dist/dropdown-menu.cjs +1 -1
  38. package/dist/dropdown-menu.js +1 -1
  39. package/dist/field.cjs +1 -1
  40. package/dist/field.d.ts +3 -0
  41. package/dist/field.d.ts.map +1 -1
  42. package/dist/field.js +5 -4
  43. package/dist/index.cjs +1 -1
  44. package/dist/index.js +348 -363
  45. package/dist/input-otp.cjs +1 -1
  46. package/dist/input-otp.js +1 -1
  47. package/dist/input-password.cjs +1 -1
  48. package/dist/input-password.js +1 -1
  49. package/dist/link.cjs +1 -1
  50. package/dist/link.js +1 -1
  51. package/dist/logo.cjs +1 -1
  52. package/dist/logo.d.ts +6 -4
  53. package/dist/logo.d.ts.map +1 -1
  54. package/dist/logo.js +18 -21
  55. package/dist/menubar.cjs +1 -1
  56. package/dist/menubar.d.ts +3 -0
  57. package/dist/menubar.d.ts.map +1 -1
  58. package/dist/menubar.js +31 -30
  59. package/dist/navigation-menu.cjs +1 -1
  60. package/dist/navigation-menu.d.ts +6 -54
  61. package/dist/navigation-menu.d.ts.map +1 -1
  62. package/dist/navigation-menu.js +73 -84
  63. package/dist/pagination.cjs +1 -1
  64. package/dist/pagination.d.ts +8 -10
  65. package/dist/pagination.d.ts.map +1 -1
  66. package/dist/pagination.js +78 -86
  67. package/dist/radio-group.cjs +1 -1
  68. package/dist/radio-group.d.ts +6 -23
  69. package/dist/radio-group.d.ts.map +1 -1
  70. package/dist/radio-group.js +56 -66
  71. package/dist/resizable.cjs +1 -1
  72. package/dist/resizable.d.ts +19 -28
  73. package/dist/resizable.d.ts.map +1 -1
  74. package/dist/resizable.js +24 -40
  75. package/dist/select.cjs +1 -1
  76. package/dist/select.js +1 -1
  77. package/dist/separator.cjs +1 -1
  78. package/dist/separator.d.ts +4 -4
  79. package/dist/separator.d.ts.map +1 -1
  80. package/dist/separator.js +19 -21
  81. package/dist/sheet.cjs +1 -1
  82. package/dist/sheet.d.ts +5 -10
  83. package/dist/sheet.d.ts.map +1 -1
  84. package/dist/sheet.js +24 -26
  85. package/dist/sonner.cjs +1 -1
  86. package/dist/sonner.d.ts +17 -20
  87. package/dist/sonner.d.ts.map +1 -1
  88. package/dist/sonner.js +42 -45
  89. package/dist/switch.cjs +1 -1
  90. package/dist/switch.d.ts +2 -12
  91. package/dist/switch.d.ts.map +1 -1
  92. package/dist/switch.js +37 -41
  93. package/dist/table.cjs +1 -1
  94. package/dist/table.d.ts +16 -12
  95. package/dist/table.d.ts.map +1 -1
  96. package/dist/table.js +56 -58
  97. package/dist/tabs.d.ts +27 -3
  98. package/dist/tabs.d.ts.map +1 -1
  99. package/dist/toggle-group.cjs +1 -1
  100. package/dist/toggle-group.d.ts +57 -7
  101. package/dist/toggle-group.d.ts.map +1 -1
  102. package/dist/toggle-group.js +60 -67
  103. package/dist/toggle.cjs +1 -1
  104. package/dist/toggle.d.ts +12 -26
  105. package/dist/toggle.d.ts.map +1 -1
  106. package/dist/toggle.js +16 -20
  107. package/package.json +2 -2
  108. package/src/blocks/data-table.tsx +1 -1
  109. package/src/blocks/sidebar.tsx +157 -532
  110. package/src/components/accordion.tsx +1 -1
  111. package/src/components/alert.tsx +1 -1
  112. package/src/components/breadcrumb.tsx +1 -1
  113. package/src/components/button.tsx +1 -1
  114. package/src/components/calendar.tsx +6 -4
  115. package/src/components/centred-layout.tsx +11 -24
  116. package/src/components/checkbox.tsx +1 -1
  117. package/src/components/combobox.tsx +18 -26
  118. package/src/components/command.tsx +1 -1
  119. package/src/components/context-menu.tsx +1 -1
  120. package/src/components/date-picker.tsx +1 -1
  121. package/src/components/dialog.tsx +1 -1
  122. package/src/components/dropdown-menu.tsx +1 -1
  123. package/src/components/field.tsx +2 -0
  124. package/src/components/input-otp.tsx +1 -1
  125. package/src/components/input-password.tsx +1 -1
  126. package/src/components/link.tsx +1 -1
  127. package/src/components/logo.tsx +9 -7
  128. package/src/components/menubar.tsx +3 -1
  129. package/src/components/navigation-menu.tsx +37 -99
  130. package/src/components/pagination.tsx +13 -19
  131. package/src/components/radio-group.tsx +17 -38
  132. package/src/components/resizable.tsx +5 -43
  133. package/src/components/select.tsx +1 -1
  134. package/src/components/separator.tsx +5 -5
  135. package/src/components/sheet.tsx +6 -11
  136. package/src/components/sonner.tsx +24 -27
  137. package/src/components/switch.figma.tsx +7 -11
  138. package/src/components/switch.tsx +9 -19
  139. package/src/components/table.tsx +23 -18
  140. package/src/components/tabs.tsx +27 -3
  141. package/src/components/toggle-group.tsx +115 -86
  142. package/src/components/toggle.figma.tsx +13 -19
  143. package/src/components/toggle.tsx +20 -34
package/dist/toggle.js CHANGED
@@ -1,11 +1,10 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import * as u from "react";
2
+ import * as g from "react";
3
3
  import * as c from "@radix-ui/react-toggle";
4
- import { cva as g } from "class-variance-authority";
4
+ import { cva as u } from "class-variance-authority";
5
5
  import { cn as m } from "@brightlocal/ui-components/lib/utils";
6
- var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.OUTLINE = "outline", e))(f || {}), v = /* @__PURE__ */ ((e) => (e.SM = "sm", e.DEFAULT = "default", e.LG = "lg", e))(v || {});
7
- const p = g(
8
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:shadow-default outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
6
+ const f = u(
7
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:shadow-default outline-none transition-[color,box-shadow] duration-150 ease-in-out aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
9
8
  {
10
9
  variants: {
11
10
  variant: {
@@ -21,37 +20,34 @@ const p = g(
21
20
  defaultVariants: {
22
21
  variant: "default",
23
22
  size: "default"
24
- /* DEFAULT */
25
23
  }
26
24
  }
27
- ), b = u.forwardRef(
25
+ ), v = g.forwardRef(
28
26
  ({
29
- className: e,
30
- variant: t,
27
+ className: t,
28
+ variant: e,
31
29
  size: a,
32
30
  dataHook: r,
33
31
  trackingEl: o,
34
- trackingLabel: n,
35
- ariaLabel: i,
32
+ trackingLabel: i,
33
+ ariaLabel: n,
36
34
  ...s
37
35
  }, d) => /* @__PURE__ */ l(
38
36
  c.Root,
39
37
  {
40
38
  ref: d,
41
- "aria-label": i,
42
- className: m(p({ variant: t, size: a, className: e })),
39
+ "aria-label": n,
40
+ className: m(f({ variant: e, size: a, className: t })),
43
41
  "data-hook": r,
44
42
  "data-slot": "toggle",
45
- "data-tracking-el": o || `toggle-${t}`,
46
- "data-tracking-label": n,
43
+ "data-tracking-el": o || `toggle-${e}`,
44
+ "data-tracking-label": i,
47
45
  ...s
48
46
  }
49
47
  )
50
48
  );
51
- b.displayName = "Toggle";
49
+ v.displayName = "Toggle";
52
50
  export {
53
- b as Toggle,
54
- v as ToggleSize,
55
- f as ToggleVariant,
56
- p as toggleVariants
51
+ v as Toggle,
52
+ f as toggleVariants
57
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightlocal/ui-components",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "BrightLocal Design System UI Components",
5
5
  "type": "module",
6
6
  "private": false,
@@ -127,7 +127,7 @@
127
127
  "directory": "packages/ui-components"
128
128
  },
129
129
  "dependencies": {
130
- "@brightlocal/icons": "^0.1.0",
130
+ "@brightlocal/icons": "workspace:*",
131
131
  "@radix-ui/react-accordion": "^1.2.12",
132
132
  "@radix-ui/react-alert-dialog": "^1.1.15",
133
133
  "@radix-ui/react-aspect-ratio": "^1.1.8",
@@ -32,7 +32,7 @@ import {
32
32
  ArrowUpDownIcon,
33
33
  EllipsisIcon,
34
34
  SearchIcon,
35
- } from "lucide-react";
35
+ } from "@brightlocal/icons";
36
36
 
37
37
  import { cn } from "@brightlocal/ui-components/lib/utils";
38
38
  import { Button } from "../components/button";