@brightlocal/ui-components 0.1.3 → 0.2.0
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/README.md +2 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.js +1 -1
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.js +1 -1
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +37 -306
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +392 -489
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +4 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +33 -33
- package/dist/centred-layout.cjs +1 -1
- package/dist/centred-layout.d.ts +5 -18
- package/dist/centred-layout.d.ts.map +1 -1
- package/dist/centred-layout.js +21 -23
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.js +19 -19
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +75 -67
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +241 -194
- package/dist/command.cjs +1 -1
- package/dist/command.js +1 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +3 -0
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +5 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +361 -366
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +5 -0
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.js +47 -39
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +6 -0
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.js +79 -76
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts +4 -0
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +32 -31
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +4 -0
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +26 -24
- package/dist/link.cjs +1 -1
- package/dist/link.js +1 -1
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts +6 -4
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +17 -20
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +3 -0
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +31 -30
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +6 -54
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.js +73 -84
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +8 -10
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +78 -86
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +10 -23
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.js +47 -55
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +19 -28
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.js +24 -40
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +3 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +57 -56
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +4 -4
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.js +19 -21
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +5 -10
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +24 -26
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +17 -20
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +42 -45
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +2 -12
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.js +37 -41
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +16 -12
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +56 -58
- package/dist/tabs.d.ts +27 -3
- package/dist/tabs.d.ts.map +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +4 -0
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.js +19 -18
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +57 -7
- package/dist/toggle-group.d.ts.map +1 -1
- package/dist/toggle-group.js +60 -67
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.d.ts +12 -26
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.js +18 -22
- package/package.json +2 -2
- package/src/blocks/data-table.tsx +1 -1
- package/src/blocks/sidebar.tsx +157 -532
- package/src/components/accordion.tsx +1 -1
- package/src/components/alert.tsx +1 -1
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/button.tsx +1 -1
- package/src/components/calendar.tsx +6 -4
- package/src/components/centred-layout.tsx +11 -24
- package/src/components/checkbox.tsx +5 -6
- package/src/components/combobox.tsx +481 -301
- package/src/components/command.tsx +1 -1
- package/src/components/context-menu.tsx +1 -1
- package/src/components/date-picker.tsx +1 -1
- package/src/components/dialog.tsx +1 -1
- package/src/components/dropdown-menu.tsx +1 -1
- package/src/components/field.tsx +2 -0
- package/src/components/input-group.tsx +14 -2
- package/src/components/input-otp.tsx +17 -2
- package/src/components/input-password.tsx +7 -2
- package/src/components/input.tsx +11 -3
- package/src/components/link.tsx +1 -1
- package/src/components/logo.tsx +10 -8
- package/src/components/menubar.tsx +3 -1
- package/src/components/navigation-menu.tsx +37 -99
- package/src/components/pagination.tsx +13 -19
- package/src/components/radio-group.tsx +28 -38
- package/src/components/resizable.tsx +5 -43
- package/src/components/select.tsx +8 -3
- package/src/components/separator.tsx +5 -5
- package/src/components/sheet.tsx +6 -11
- package/src/components/sonner.tsx +24 -27
- package/src/components/switch.figma.tsx +7 -11
- package/src/components/switch.tsx +9 -19
- package/src/components/table.tsx +23 -18
- package/src/components/tabs.tsx +27 -3
- package/src/components/textarea.tsx +12 -5
- package/src/components/toggle-group.tsx +115 -86
- package/src/components/toggle.figma.tsx +13 -19
- package/src/components/toggle.tsx +32 -48
package/dist/toggle-group.js
CHANGED
|
@@ -1,76 +1,69 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { toggleVariants as f
|
|
6
|
-
const p =
|
|
7
|
-
size:
|
|
8
|
-
variant:
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
m.Root,
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import * as u from "@radix-ui/react-toggle-group";
|
|
4
|
+
import { cn as m } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
+
import { toggleVariants as f } from "./toggle.js";
|
|
6
|
+
const p = r.createContext({
|
|
7
|
+
size: "default",
|
|
8
|
+
variant: "default"
|
|
9
|
+
}), c = r.forwardRef(
|
|
10
|
+
({
|
|
11
|
+
className: i,
|
|
12
|
+
variant: o,
|
|
13
|
+
size: a,
|
|
14
|
+
children: e,
|
|
15
|
+
dataHook: d,
|
|
16
|
+
trackingEl: l,
|
|
17
|
+
trackingLabel: n,
|
|
18
|
+
...s
|
|
19
|
+
}, t) => /* @__PURE__ */ g(
|
|
20
|
+
u.Root,
|
|
22
21
|
{
|
|
23
|
-
|
|
22
|
+
ref: t,
|
|
23
|
+
className: m(
|
|
24
24
|
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
|
|
25
|
-
|
|
25
|
+
i
|
|
26
26
|
),
|
|
27
|
-
"data-hook":
|
|
27
|
+
"data-hook": d,
|
|
28
28
|
"data-size": a,
|
|
29
29
|
"data-slot": "toggle-group",
|
|
30
|
-
"data-tracking-el":
|
|
31
|
-
"data-tracking-label":
|
|
32
|
-
"data-variant":
|
|
33
|
-
...g,
|
|
34
|
-
children: /* @__PURE__ */ d(p.Provider, { value: { variant: t, size: a }, children: o })
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
function h({
|
|
39
|
-
className: r,
|
|
40
|
-
children: t,
|
|
41
|
-
variant: a,
|
|
42
|
-
size: o,
|
|
43
|
-
dataHook: i,
|
|
44
|
-
trackingEl: n,
|
|
45
|
-
trackingLabel: l,
|
|
46
|
-
ariaLabel: g,
|
|
47
|
-
...s
|
|
48
|
-
}) {
|
|
49
|
-
const e = u.useContext(p);
|
|
50
|
-
return /* @__PURE__ */ d(
|
|
51
|
-
m.Item,
|
|
52
|
-
{
|
|
53
|
-
"aria-label": g,
|
|
54
|
-
className: c(
|
|
55
|
-
f({
|
|
56
|
-
variant: e.variant || a,
|
|
57
|
-
size: e.size || o
|
|
58
|
-
}),
|
|
59
|
-
"w-auto min-w-0 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
|
|
60
|
-
r
|
|
61
|
-
),
|
|
62
|
-
"data-hook": i,
|
|
63
|
-
"data-size": e.size || o,
|
|
64
|
-
"data-slot": "toggle-group-item",
|
|
65
|
-
"data-tracking-el": n || `toggle-group-item-${s.value}`,
|
|
66
|
-
"data-tracking-label": l,
|
|
67
|
-
"data-variant": e.variant || a,
|
|
30
|
+
"data-tracking-el": l || `toggle-group-${o}`,
|
|
31
|
+
"data-tracking-label": n,
|
|
32
|
+
"data-variant": o,
|
|
68
33
|
...s,
|
|
69
|
-
children:
|
|
34
|
+
children: /* @__PURE__ */ g(p.Provider, { value: { variant: o, size: a }, children: e })
|
|
70
35
|
}
|
|
71
|
-
)
|
|
72
|
-
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
c.displayName = "ToggleGroup";
|
|
39
|
+
const v = r.forwardRef(
|
|
40
|
+
({ className: i, children: o, variant: a, size: e, ariaLabel: d, dataHook: l, ...n }, s) => {
|
|
41
|
+
const t = r.useContext(p);
|
|
42
|
+
return /* @__PURE__ */ g(
|
|
43
|
+
u.Item,
|
|
44
|
+
{
|
|
45
|
+
ref: s,
|
|
46
|
+
"aria-label": d,
|
|
47
|
+
className: m(
|
|
48
|
+
f({
|
|
49
|
+
variant: t.variant || a,
|
|
50
|
+
size: t.size || e
|
|
51
|
+
}),
|
|
52
|
+
"w-auto min-w-0 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
|
|
53
|
+
i
|
|
54
|
+
),
|
|
55
|
+
"data-hook": l,
|
|
56
|
+
"data-size": t.size || e,
|
|
57
|
+
"data-slot": "toggle-group-item",
|
|
58
|
+
"data-variant": t.variant || a,
|
|
59
|
+
...n,
|
|
60
|
+
children: o
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
v.displayName = "ToggleGroupItem";
|
|
73
66
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
c as ToggleGroup,
|
|
68
|
+
v as ToggleGroupItem
|
|
76
69
|
};
|
package/dist/toggle.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),f=require("react"),b=require("@radix-ui/react-toggle"),m=require("class-variance-authority"),p=require("@brightlocal/ui-components/lib/utils");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const v=o(f),h=o(b),r=m.cva("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 whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),i=v.forwardRef(({className:e,variant:t,size:a,dataHook:n,trackingEl:s,trackingLabel:c,ariaLabel:l,...u},d)=>g.jsx(h.Root,{ref:d,"aria-label":l,className:p.cn(r({variant:t,size:a,className:e})),"data-hook":n,"data-slot":"toggle","data-tracking-el":s||`toggle-${t}`,"data-tracking-label":c,...u}));i.displayName="Toggle";exports.Toggle=i;exports.toggleVariants=r;
|
package/dist/toggle.d.ts
CHANGED
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4
|
-
/**
|
|
5
|
-
* Visual style variants for Toggle
|
|
6
|
-
*/
|
|
7
|
-
export declare enum ToggleVariant {
|
|
8
|
-
/** Default variant with transparent background */
|
|
9
|
-
DEFAULT = "default",
|
|
10
|
-
/** Outline variant with border styling */
|
|
11
|
-
OUTLINE = "outline"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Size variants for Toggle
|
|
15
|
-
*/
|
|
16
|
-
export declare enum ToggleSize {
|
|
17
|
-
/** Small size (32px height) */
|
|
18
|
-
SM = "sm",
|
|
19
|
-
/** Default size (36px height) */
|
|
20
|
-
DEFAULT = "default",
|
|
21
|
-
/** Large size (40px height) */
|
|
22
|
-
LG = "lg"
|
|
23
|
-
}
|
|
24
4
|
declare const toggleVariants: (props?: ({
|
|
25
|
-
variant?:
|
|
26
|
-
size?:
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
27
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
28
8
|
export interface ToggleProps extends React.ComponentProps<typeof TogglePrimitive.Root>, VariantProps<typeof toggleVariants> {
|
|
29
9
|
/** Data hook for automated testing (REQUIRED) */
|
|
@@ -32,10 +12,16 @@ export interface ToggleProps extends React.ComponentProps<typeof TogglePrimitive
|
|
|
32
12
|
trackingEl?: string;
|
|
33
13
|
/** Tracking label for analytics context */
|
|
34
14
|
trackingLabel?: string;
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Visual style variant
|
|
17
|
+
* @default "default"
|
|
18
|
+
*/
|
|
19
|
+
variant?: "default" | "outline";
|
|
20
|
+
/**
|
|
21
|
+
* Size variant
|
|
22
|
+
* @default "default"
|
|
23
|
+
*/
|
|
24
|
+
size?: "default" | "sm" | "lg";
|
|
39
25
|
/** ARIA label for accessibility (required when no text content) */
|
|
40
26
|
ariaLabel?: string;
|
|
41
27
|
}
|
package/dist/toggle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;8EAoBnB,CAAC;AAEF,MAAM,WAAW,WACf,SACE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EACjD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/B,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,oGA4BX,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/toggle.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as g from "react";
|
|
3
3
|
import * as c from "@radix-ui/react-toggle";
|
|
4
|
-
import { cva as
|
|
5
|
-
import { cn as
|
|
6
|
-
|
|
7
|
-
|
|
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",
|
|
4
|
+
import { cva as m } from "class-variance-authority";
|
|
5
|
+
import { cn as f } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
const u = m(
|
|
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 whitespace-nowrap",
|
|
9
8
|
{
|
|
10
9
|
variants: {
|
|
11
10
|
variant: {
|
|
@@ -21,17 +20,16 @@ const p = g(
|
|
|
21
20
|
defaultVariants: {
|
|
22
21
|
variant: "default",
|
|
23
22
|
size: "default"
|
|
24
|
-
/* DEFAULT */
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
|
-
),
|
|
25
|
+
), p = g.forwardRef(
|
|
28
26
|
({
|
|
29
|
-
className:
|
|
30
|
-
variant:
|
|
27
|
+
className: t,
|
|
28
|
+
variant: e,
|
|
31
29
|
size: a,
|
|
32
|
-
dataHook:
|
|
33
|
-
trackingEl:
|
|
34
|
-
trackingLabel:
|
|
30
|
+
dataHook: o,
|
|
31
|
+
trackingEl: n,
|
|
32
|
+
trackingLabel: r,
|
|
35
33
|
ariaLabel: i,
|
|
36
34
|
...s
|
|
37
35
|
}, d) => /* @__PURE__ */ l(
|
|
@@ -39,19 +37,17 @@ const p = g(
|
|
|
39
37
|
{
|
|
40
38
|
ref: d,
|
|
41
39
|
"aria-label": i,
|
|
42
|
-
className:
|
|
43
|
-
"data-hook":
|
|
40
|
+
className: f(u({ variant: e, size: a, className: t })),
|
|
41
|
+
"data-hook": o,
|
|
44
42
|
"data-slot": "toggle",
|
|
45
|
-
"data-tracking-el":
|
|
46
|
-
"data-tracking-label":
|
|
43
|
+
"data-tracking-el": n || `toggle-${e}`,
|
|
44
|
+
"data-tracking-label": r,
|
|
47
45
|
...s
|
|
48
46
|
}
|
|
49
47
|
)
|
|
50
48
|
);
|
|
51
|
-
|
|
49
|
+
p.displayName = "Toggle";
|
|
52
50
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
f as ToggleVariant,
|
|
56
|
-
p as toggleVariants
|
|
51
|
+
p as Toggle,
|
|
52
|
+
u as toggleVariants
|
|
57
53
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightlocal/ui-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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": "
|
|
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",
|