@terrafirmagreg-team/ui 1.2.3 → 1.2.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrafirmagreg-team/ui",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "type": "module",
5
5
  "description": "Shared UI kit",
6
6
  "license": "LGPL-3.0-only",
@@ -44,7 +44,7 @@
44
44
  "@react-three/drei": "10.7.9",
45
45
  "@react-three/fiber": "9.8.2",
46
46
  "@shadcn/react": "^0.3.1",
47
- "@terrafirmagreg-team/translate": "1.2.3",
47
+ "@terrafirmagreg-team/translate": "^1.2.4",
48
48
  "@xyflow/react": "12.12.0",
49
49
  "beautiful-mermaid": "^1.1.3",
50
50
  "class-variance-authority": "^0.7.1",
@@ -55,7 +55,7 @@
55
55
  "hast-util-to-jsx-runtime": "^2.3.6",
56
56
  "input-otp": "^1.5.0",
57
57
  "katex": "^0.19.1",
58
- "lucide-react": "^0.577.0",
58
+ "lucide-react": "^1.63.0",
59
59
  "next-themes": "^0.4.6",
60
60
  "react-day-picker": "^10.0.2",
61
61
  "react-medium-image-zoom": "^5.4.9",
@@ -65,7 +65,7 @@
65
65
  "tailwindcss": "^4.3.4",
66
66
  "three": "^0.186.1",
67
67
  "three-stdlib": "2.36.1",
68
- "@terrafirmagreg-team/data": "1.2.1"
68
+ "@terrafirmagreg-team/data": "^1.2.1"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "next": ">=15",
@@ -2,28 +2,7 @@
2
2
  import { Hint } from '@terrafirmagreg-team/ui/components/blocks/tooltip/hint';
3
3
  import { cn } from '@terrafirmagreg-team/ui/lib/utils/cn';
4
4
  import { useTranslations } from '@terrafirmagreg-team/translate/hooks/use-translations';
5
-
6
- function LanguagesIcon({ className }: { className?: string }) {
7
- return (
8
- <svg
9
- viewBox="0 0 24 24"
10
- fill="none"
11
- stroke="currentColor"
12
- strokeWidth="2"
13
- strokeLinecap="round"
14
- strokeLinejoin="round"
15
- className={className}
16
- aria-hidden
17
- >
18
- <path d="m5 8 6 6" />
19
- <path d="m4 14 6-6 2-3" />
20
- <path d="M2 5h12" />
21
- <path d="M7 2h1" />
22
- <path d="m22 22-5-10-5 10" />
23
- <path d="M14 18h6" />
24
- </svg>
25
- );
26
- }
5
+ import { Languages } from 'lucide-react';
27
6
 
28
7
  export function UntranslatedChip({ className }: { className?: string }) {
29
8
  const t = useTranslations();
@@ -45,7 +24,7 @@ export function UntranslatedChip({ className }: { className?: string }) {
45
24
  className,
46
25
  )}
47
26
  >
48
- <LanguagesIcon className="size-3" />
27
+ <Languages className="size-3" aria-hidden />
49
28
  {t('Untranslated', { note: 'untranslated.chip' })}
50
29
  </span>
51
30
  </Hint>
@@ -257,7 +257,7 @@ export function GlbScene({
257
257
  label: t('Viewer settings', { note: 'ui.viewer.settings' }),
258
258
  sliders: [
259
259
  {
260
- icon: <MoveHorizontal />,
260
+ icon: <MoveHorizontal className="size-3.5" />,
261
261
  label: t('Width', { note: 'ui.viewer.width' }),
262
262
  min: SCENE_WIDTH_MIN,
263
263
  max: SCENE_WIDTH_MAX,
@@ -267,7 +267,7 @@ export function GlbScene({
267
267
  onChange: setSceneWidth,
268
268
  },
269
269
  {
270
- icon: <MoveVertical />,
270
+ icon: <MoveVertical className="size-3.5" />,
271
271
  label: t('Height', { note: 'ui.viewer.height' }),
272
272
  min: SCENE_HEIGHT_MIN,
273
273
  max: SCENE_HEIGHT_MAX,
@@ -277,7 +277,7 @@ export function GlbScene({
277
277
  onChange: setSceneHeight,
278
278
  },
279
279
  {
280
- icon: <Gauge />,
280
+ icon: <Gauge className="size-3.5" />,
281
281
  label: t('Rotate speed', { note: 'ui.viewer.rotate_speed' }),
282
282
  min: ROTATE_MIN,
283
283
  max: ROTATE_MAX,
@@ -289,7 +289,7 @@ export function GlbScene({
289
289
  ...(multi
290
290
  ? [
291
291
  {
292
- icon: <Timer />,
292
+ icon: <Timer className="size-3.5" />,
293
293
  label: t('Autoplay speed', { note: 'ui.viewer.autoplay_speed' }),
294
294
  min: AUTOPLAY_SPEED_MIN,
295
295
  max: AUTOPLAY_SPEED_MAX,
@@ -304,7 +304,7 @@ export function GlbScene({
304
304
  ],
305
305
  toggles: [
306
306
  {
307
- icon: <RotateCw />,
307
+ icon: <RotateCw className="size-4" />,
308
308
  label: t('Spin', { note: 'ui.viewer.spin' }),
309
309
  checked: autoRotate,
310
310
  onChange: setAutoRotate,
@@ -312,7 +312,7 @@ export function GlbScene({
312
312
  ...(multi
313
313
  ? [
314
314
  {
315
- icon: <Play />,
315
+ icon: <Play className="size-4" />,
316
316
  label: t('Autoplay', { note: 'ui.viewer.autoplay' }),
317
317
  checked: autoplay,
318
318
  onChange: setAutoplay,
@@ -320,7 +320,7 @@ export function GlbScene({
320
320
  ]
321
321
  : []),
322
322
  {
323
- icon: <Grid3x3 />,
323
+ icon: <Grid3x3 className="size-4" />,
324
324
  label: t('Grid', { note: 'ui.viewer.grid' }),
325
325
  checked: dotGrid,
326
326
  onChange: setDotGrid,
@@ -141,7 +141,7 @@ export function Slideshow({
141
141
  sliders: multi
142
142
  ? [
143
143
  {
144
- icon: <Timer />,
144
+ icon: <Timer className="size-3.5" />,
145
145
  label: t('Autoplay speed', { note: 'ui.viewer.autoplay_speed' }),
146
146
  min: AUTOPLAY_SPEED_MIN,
147
147
  max: AUTOPLAY_SPEED_MAX,
@@ -156,7 +156,7 @@ export function Slideshow({
156
156
  toggles: multi
157
157
  ? [
158
158
  {
159
- icon: <Play />,
159
+ icon: <Play className="size-4" />,
160
160
  label: t('Autoplay', { note: 'ui.viewer.autoplay' }),
161
161
  checked: autoplay,
162
162
  onChange: setAutoplay,