@raystack/apsara 0.41.0 → 0.41.2
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/dist/avatar/avatar.d.ts +3 -3
- package/dist/avatar/avatar.d.ts.map +1 -1
- package/dist/badge/badge.d.ts +1 -1
- package/dist/body/body.d.ts +1 -1
- package/dist/body/body.d.ts.map +1 -1
- package/dist/box/box.d.ts +1 -1
- package/dist/box/box.d.ts.map +1 -1
- package/dist/button/button.d.ts +1 -1
- package/dist/checkbox/checkbox.d.ts +2 -2
- package/dist/checkbox/checkbox.d.ts.map +1 -1
- package/dist/container/container.d.ts +1 -1
- package/dist/container/container.d.ts.map +1 -1
- package/dist/dialog/dialog.d.ts +2 -2
- package/dist/dialog/dialog.d.ts.map +1 -1
- package/dist/display/display.d.ts +1 -1
- package/dist/display/display.d.ts.map +1 -1
- package/dist/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/emptystate/emptystate.d.ts +1 -1
- package/dist/emptystate/emptystate.d.ts.map +1 -1
- package/dist/errorstate/errorstate.d.ts +1 -1
- package/dist/errorstate/errorstate.d.ts.map +1 -1
- package/dist/flex/flex.d.ts +1 -1
- package/dist/grid/grid.d.ts +1 -1
- package/dist/grid/grid.d.ts.map +1 -1
- package/dist/headline/headline.d.ts +1 -1
- package/dist/headline/headline.d.ts.map +1 -1
- package/dist/image/image.d.ts +1 -1
- package/dist/image/image.d.ts.map +1 -1
- package/dist/inputfield/inputfield.d.ts +1 -1
- package/dist/inputfield/inputfield.d.ts.map +1 -1
- package/dist/label/label.d.ts +1 -1
- package/dist/label/label.d.ts.map +1 -1
- package/dist/link/link.d.ts +1 -1
- package/dist/link/link.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js +2 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/radio/radio.d.ts +2 -2
- package/dist/radio/radio.d.ts.map +1 -1
- package/dist/scroll-area/scrollarea.d.ts +2 -2
- package/dist/select/select.d.ts +2 -2
- package/dist/separator/separator.d.ts +1 -1
- package/dist/separator/separator.d.ts.map +1 -1
- package/dist/sheet/sheet.d.ts +2 -2
- package/dist/sheet/sheet.d.ts.map +1 -1
- package/dist/sidebar/sidebar.d.ts +3 -3
- package/dist/sidebar/sidebar.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/switch/switch.d.ts +2 -2
- package/dist/switch/switch.d.ts.map +1 -1
- package/dist/table/table.d.ts +7 -7
- package/dist/tabs/tabs.d.ts +4 -4
- package/dist/tabs/tabs.d.ts.map +1 -1
- package/dist/text/text.d.ts +1 -1
- package/dist/text/text.d.ts.map +1 -1
- package/dist/textarea/textarea.d.ts +2 -2
- package/dist/textarea/textarea.d.ts.map +1 -1
- package/dist/textfield/textfield.d.ts +2 -2
- package/dist/textfield/textfield.d.ts.map +1 -1
- package/dist/title/title.d.ts +1 -1
- package/dist/title/title.d.ts.map +1 -1
- package/dist/toggle-group/togglegroup.d.ts +2 -2
- package/dist/toggle-group/togglegroup.d.ts.map +1 -1
- package/dist/v1/components/announcement-bar/announcement-bar.d.ts +1 -1
- package/dist/v1/components/announcement-bar/announcement-bar.d.ts.map +1 -1
- package/dist/v1/components/avatar/avatar.d.ts +1 -1
- package/dist/v1/components/avatar/avatar.d.ts.map +1 -1
- package/dist/v1/components/badge/badge.d.ts +1 -1
- package/dist/v1/components/badge/badge.d.ts.map +1 -1
- package/dist/v1/components/box/box.d.ts +1 -1
- package/dist/v1/components/box/box.d.ts.map +1 -1
- package/dist/v1/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/v1/components/button/button.d.ts +1 -1
- package/dist/v1/components/callout/callout.d.ts +1 -1
- package/dist/v1/components/callout/callout.d.ts.map +1 -1
- package/dist/v1/components/checkbox/checkbox.d.ts +1 -1
- package/dist/v1/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/v1/components/chip/chip.d.ts +1 -1
- package/dist/v1/components/chip/chip.d.ts.map +1 -1
- package/dist/v1/components/container/container.d.ts +1 -1
- package/dist/v1/components/container/container.d.ts.map +1 -1
- package/dist/v1/components/data-table/data-table.cjs +29 -6
- package/dist/v1/components/data-table/data-table.cjs.map +1 -1
- package/dist/v1/components/data-table/data-table.d.ts.map +1 -1
- package/dist/v1/components/data-table/data-table.js +30 -7
- package/dist/v1/components/data-table/data-table.js.map +1 -1
- package/dist/v1/components/dialog/dialog.d.ts +1 -1
- package/dist/v1/components/dialog/dialog.d.ts.map +1 -1
- package/dist/v1/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/v1/components/flex/flex.d.ts +1 -1
- package/dist/v1/components/headline/headline.cjs +8 -4
- package/dist/v1/components/headline/headline.cjs.map +1 -1
- package/dist/v1/components/headline/headline.d.ts +20 -4
- package/dist/v1/components/headline/headline.d.ts.map +1 -1
- package/dist/v1/components/headline/headline.js +8 -4
- package/dist/v1/components/headline/headline.js.map +1 -1
- package/dist/v1/components/headline/headline.module.css.cjs +1 -1
- package/dist/v1/components/headline/headline.module.css.js +1 -1
- package/dist/v1/components/headline/index.d.ts +1 -1
- package/dist/v1/components/headline/index.d.ts.map +1 -1
- package/dist/v1/components/icon-button/icon-button.d.ts +1 -1
- package/dist/v1/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/v1/components/image/image.d.ts +1 -1
- package/dist/v1/components/image/image.d.ts.map +1 -1
- package/dist/v1/components/indicator/indicator.d.ts +1 -1
- package/dist/v1/components/indicator/indicator.d.ts.map +1 -1
- package/dist/v1/components/input-field/input-field.d.ts +1 -1
- package/dist/v1/components/input-field/input-field.d.ts.map +1 -1
- package/dist/v1/components/label/label.d.ts +1 -1
- package/dist/v1/components/label/label.d.ts.map +1 -1
- package/dist/v1/components/link/link.cjs +17 -63
- package/dist/v1/components/link/link.cjs.map +1 -1
- package/dist/v1/components/link/link.d.ts +2 -11
- package/dist/v1/components/link/link.d.ts.map +1 -1
- package/dist/v1/components/link/link.js +17 -63
- package/dist/v1/components/link/link.js.map +1 -1
- package/dist/v1/components/link/link.module.css.cjs +1 -1
- package/dist/v1/components/link/link.module.css.js +1 -1
- package/dist/v1/components/list/list.d.ts +1 -1
- package/dist/v1/components/list/list.d.ts.map +1 -1
- package/dist/v1/components/radio/radio.d.ts +1 -1
- package/dist/v1/components/radio/radio.d.ts.map +1 -1
- package/dist/v1/components/select/select.d.ts +4 -5
- package/dist/v1/components/select/select.d.ts.map +1 -1
- package/dist/v1/components/sheet/sheet.d.ts +2 -2
- package/dist/v1/components/sheet/sheet.d.ts.map +1 -1
- package/dist/v1/components/side-panel/side-panel.d.ts +1 -1
- package/dist/v1/components/side-panel/side-panel.d.ts.map +1 -1
- package/dist/v1/components/slider/slider.d.ts +1 -1
- package/dist/v1/components/slider/slider.d.ts.map +1 -1
- package/dist/v1/components/spinner/spinner.d.ts +1 -1
- package/dist/v1/components/spinner/spinner.d.ts.map +1 -1
- package/dist/v1/components/table/table.d.ts +4 -4
- package/dist/v1/components/tabs/tabs.d.ts +1 -1
- package/dist/v1/components/tabs/tabs.d.ts.map +1 -1
- package/dist/v1/components/text/index.d.ts +1 -1
- package/dist/v1/components/text/index.d.ts.map +1 -1
- package/dist/v1/components/text/text.cjs +61 -7
- package/dist/v1/components/text/text.cjs.map +1 -1
- package/dist/v1/components/text/text.d.ts +40 -8
- package/dist/v1/components/text/text.d.ts.map +1 -1
- package/dist/v1/components/text/text.js +92 -39
- package/dist/v1/components/text/text.js.map +1 -1
- package/dist/v1/components/text/text.module.css.cjs +2 -2
- package/dist/v1/components/text/text.module.css.js +2 -2
- package/dist/v1/components/textfield/textfield.d.ts +2 -2
- package/dist/v1/components/textfield/textfield.d.ts.map +1 -1
- package/dist/v1/components/tooltip/tooltip.d.ts +1 -1
- package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js +2 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/v1/style.css +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var styles = {"link":"link-module_link__ulWU8"
|
|
5
|
+
var styles = {"link":"link-module_link__ulWU8"};
|
|
6
6
|
|
|
7
7
|
exports.default = styles;
|
|
8
8
|
//# sourceMappingURL=link.module.css.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var styles = {"link":"link-module_link__ulWU8"
|
|
1
|
+
var styles = {"link":"link-module_link__ulWU8"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|
|
4
4
|
//# sourceMappingURL=link.module.css.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
|
-
declare const list: (props?: import("class-variance-authority/
|
|
3
|
+
declare const list: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
4
4
|
interface ListRootProps extends ComponentPropsWithoutRef<"ul">, VariantProps<typeof list> {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
maxWidth?: string | number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../v1/components/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5D,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../v1/components/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5D,QAAA,MAAM,IAAI,oFAAmB,CAAC;AAO9B,UAAU,aAAc,SAAQ,wBAAwB,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,IAAI,CAAC;IACvF,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,UAAU,aAAc,SAAQ,wBAAwB,CAAC,IAAI,CAAC;IAC5D,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,cAAe,SAAQ,wBAAwB,CAAC,MAAM,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,cAAe,SAAQ,wBAAwB,CAAC,MAAM,CAAC;IAC/D,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,eAAgB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IAC/D,QAAQ,EAAE,SAAS,CAAC;CACrB;AAuED,eAAO,MAAM,IAAI;;6DArEqD,aAAa;;;;4CAwD5B,eAAe;;;;4CA1CjB,aAAa;;;;6DAkB/D,cAAc;;;;4CAgBd,cAAc;;;CA2BhB,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { ComponentPropsWithoutRef } from "react";
|
|
|
4
4
|
export interface RadioItemProps extends ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
|
|
5
5
|
}
|
|
6
6
|
export declare const RadioItem: import("react").ForwardRefExoticComponent<RadioItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
declare const indicator: (props?: import("class-variance-authority/
|
|
7
|
+
declare const indicator: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
8
|
export interface thumbProps extends ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Indicator>, VariantProps<typeof indicator> {
|
|
9
9
|
}
|
|
10
10
|
export declare const Radio: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../../v1/components/radio/radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAazE,MAAM,WAAW,cACf,SAAQ,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC;CAAG;AAEtE,eAAO,MAAM,SAAS,8GAWpB,CAAC;AAEH,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../../v1/components/radio/radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAazE,MAAM,WAAW,cACf,SAAQ,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC;CAAG;AAEtE,eAAO,MAAM,SAAS,8GAWpB,CAAC;AAEH,QAAA,MAAM,SAAS,oFAAwB,CAAC;AACxC,MAAM,WAAW,UACf,SAAQ,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,EACpE,YAAY,CAAC,OAAO,SAAS,CAAC;CAAG;AAerC,eAAO,MAAM,KAAK;;;;CAIhB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { TextProps } from "../text/text";
|
|
5
4
|
interface AriaProps {
|
|
6
5
|
'aria-label'?: string;
|
|
7
6
|
'aria-describedby'?: string;
|
|
@@ -25,17 +24,17 @@ export declare const Select: React.FC<SelectPrimitive.SelectProps> & {
|
|
|
25
24
|
Viewport: React.ForwardRefExoticComponent<SelectPrimitive.SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
25
|
Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
27
26
|
size?: "small" | "medium" | null | undefined;
|
|
28
|
-
variant?: "
|
|
29
|
-
} & import("class-variance-authority/
|
|
27
|
+
variant?: "filter" | "default" | null | undefined;
|
|
28
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
30
29
|
children?: React.ReactNode;
|
|
31
30
|
} & {
|
|
32
31
|
iconProps?: IconProps | undefined;
|
|
33
32
|
} & AriaProps & TriggerStyleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
34
|
-
Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/
|
|
33
|
+
Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
35
34
|
children?: React.ReactNode;
|
|
36
35
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
37
36
|
Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
38
|
-
textProps?:
|
|
37
|
+
textProps?: any;
|
|
39
38
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
40
39
|
Separator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../v1/components/select/select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../v1/components/select/select.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,UAAU,SAAS;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA2HD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;CAUjB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { ComponentProps, ComponentPropsWithoutRef } from "react";
|
|
4
4
|
declare const sheetContent: (props?: ({
|
|
5
5
|
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface DialogContentProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetContent> {
|
|
8
8
|
ariaLabel?: string;
|
|
9
9
|
ariaDescription?: string;
|
|
@@ -12,7 +12,7 @@ export declare const SheetContent: import("react").ForwardRefExoticComponent<Dia
|
|
|
12
12
|
close?: boolean | undefined;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const overlay: (props?: import("class-variance-authority/
|
|
15
|
+
declare const overlay: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
16
16
|
export interface OverlayProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>, VariantProps<typeof overlay> {
|
|
17
17
|
}
|
|
18
18
|
type CloseButtonProps = ComponentProps<typeof DialogPrimitive.Close>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../v1/components/sheet/sheet.tsx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AAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAMtE;AAED,eAAO,MAAM,KAAK;;;;mBAlFmC,MAAM,SAAS;;;;;CAwFlE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const sidePanelRoot: (props?: ({
|
|
4
4
|
side?: "right" | "left" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
interface SidePanelProps extends VariantProps<typeof sidePanelRoot> {
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-panel.d.ts","sourceRoot":"","sources":["../../../../v1/components/side-panel/side-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAM7D,QAAA,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"side-panel.d.ts","sourceRoot":"","sources":["../../../../v1/components/side-panel/side-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAM7D,QAAA,MAAM,aAAa;;8EAUjB,CAAC;AAEH,UAAU,cAAe,SAAQ,YAAY,CAAC,OAAO,aAAa,CAAC;IACjE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAYD,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA4BD,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAMD,eAAO,MAAM,SAAS,oCA/CnB,cAAc;qDAkBd,oBAAoB;4BAyBiB,qBAAqB;CAO3D,CAAC"}
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
5
5
|
declare const slider: (props?: ({
|
|
6
6
|
variant?: "range" | "single" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export interface SliderProps extends Omit<ComponentPropsWithoutRef<typeof RadixSlider.Root>, 'value' | 'defaultValue' | 'onChange'>, VariantProps<typeof slider> {
|
|
9
9
|
value?: number | [number, number];
|
|
10
10
|
defaultValue?: number | [number, number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../../v1/components/slider/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAKtD,QAAA,MAAM,MAAM;;
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../../v1/components/slider/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAKtD,QAAA,MAAM,MAAM;;8EAUV,CAAC;AAEH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,EACpG,YAAY,CAAC,OAAO,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,MAAM,qFAmElB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { ComponentPropsWithoutRef } from "react";
|
|
|
3
3
|
declare const spinner: (props?: ({
|
|
4
4
|
size?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
5
5
|
color?: "default" | "inverted" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface SpinnerProps extends ComponentPropsWithoutRef<"div">, VariantProps<typeof spinner> {
|
|
8
8
|
size?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
9
9
|
color?: "default" | "inverted";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../../v1/components/spinner/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAIzE,QAAA,MAAM,OAAO;;;
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../../v1/components/spinner/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAA0B,MAAM,OAAO,CAAC;AAIzE,QAAA,MAAM,OAAO;;;8EAmBX,CAAC;AAEH,MAAM,WAAW,YACf,SAAQ,wBAAwB,CAAC,KAAK,CAAC,EACrC,YAAY,CAAC,OAAO,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CAChC;AAED,eAAO,MAAM,OAAO,yGAcnB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
type SectionHeaderClassNames = "row" | "cell";
|
|
4
|
-
export declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<HTMLTableElement> & VariantProps<(props?: import("class-variance-authority/
|
|
4
|
+
export declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttributes<HTMLTableElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
} & React.RefAttributes<HTMLTableElement>> & {
|
|
7
|
-
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & VariantProps<(props?: import("class-variance-authority/
|
|
7
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
} & React.RefAttributes<HTMLTableSectionElement>>;
|
|
10
10
|
Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & {
|
|
@@ -13,10 +13,10 @@ export declare const Table: React.ForwardRefExoticComponent<React.TableHTMLAttri
|
|
|
13
13
|
Row: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & {
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
} & React.RefAttributes<HTMLTableRowElement>>;
|
|
16
|
-
Head: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & VariantProps<(props?: import("class-variance-authority/
|
|
16
|
+
Head: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
19
|
-
Cell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & VariantProps<(props?: import("class-variance-authority/
|
|
19
|
+
Cell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
22
22
|
SectionHeader: React.ForwardRefExoticComponent<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
4
|
-
declare const root: (props?: import("class-variance-authority/
|
|
4
|
+
declare const root: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
5
|
interface TabsRootProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Root>, VariantProps<typeof root> {
|
|
6
6
|
defaultValue?: string;
|
|
7
7
|
'aria-label'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../v1/components/tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAA0B,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpF,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../v1/components/tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAA0B,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpF,QAAA,MAAM,IAAI,oFAAmB,CAAC;AAK9B,UAAU,aACR,SAAQ,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,EACzD,YAAY,CAAC,OAAO,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,gBACR,SAAQ,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA0DD,eAAO,MAAM,IAAI;;;;;CAKhB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./text";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../v1/components/text/index.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../v1/components/text/index.tsx"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
-
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
4
|
+
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var index = require('../../node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs');
|
|
5
7
|
var text_module = require('./text.module.css.cjs');
|
|
6
8
|
|
|
7
|
-
const
|
|
9
|
+
const textVariants = index$1.cva(text_module.default.text, {
|
|
8
10
|
variants: {
|
|
9
11
|
variant: {
|
|
10
12
|
primary: text_module.default["text-primary"],
|
|
@@ -17,6 +19,11 @@ const text = index.cva(text_module.default.text, {
|
|
|
17
19
|
success: text_module.default["text-success"],
|
|
18
20
|
},
|
|
19
21
|
size: {
|
|
22
|
+
micro: text_module.default["text-micro"],
|
|
23
|
+
mini: text_module.default["text-mini"],
|
|
24
|
+
small: text_module.default["text-small"],
|
|
25
|
+
regular: text_module.default["text-regular"],
|
|
26
|
+
large: text_module.default["text-large"],
|
|
20
27
|
1: text_module.default["text-1"],
|
|
21
28
|
2: text_module.default["text-2"],
|
|
22
29
|
3: text_module.default["text-3"],
|
|
@@ -29,6 +36,8 @@ const text = index.cva(text_module.default.text, {
|
|
|
29
36
|
10: text_module.default["text-10"],
|
|
30
37
|
},
|
|
31
38
|
weight: {
|
|
39
|
+
regular: text_module.default["text-weight-regular"],
|
|
40
|
+
medium: text_module.default["text-weight-medium"],
|
|
32
41
|
bold: text_module.default["text-weight-bold"],
|
|
33
42
|
bolder: text_module.default["text-weight-bolder"],
|
|
34
43
|
normal: text_module.default["text-weight-normal"],
|
|
@@ -43,16 +52,61 @@ const text = index.cva(text_module.default.text, {
|
|
|
43
52
|
800: text_module.default["text-weight-800"],
|
|
44
53
|
900: text_module.default["text-weight-900"],
|
|
45
54
|
},
|
|
55
|
+
transform: {
|
|
56
|
+
capitalize: text_module.default["text-transform-capitalize"],
|
|
57
|
+
uppercase: text_module.default["text-transform-uppercase"],
|
|
58
|
+
lowercase: text_module.default["text-transform-lowercase"],
|
|
59
|
+
},
|
|
60
|
+
align: {
|
|
61
|
+
center: text_module.default["text-align-center"],
|
|
62
|
+
start: text_module.default["text-align-start"],
|
|
63
|
+
end: text_module.default["text-align-end"],
|
|
64
|
+
justify: text_module.default["text-align-justify"],
|
|
65
|
+
},
|
|
66
|
+
lineClamp: {
|
|
67
|
+
1: [text_module.default["text-line-clamp"], text_module.default["text-line-clamp-1"]],
|
|
68
|
+
2: [text_module.default["text-line-clamp"], text_module.default["text-line-clamp-2"]],
|
|
69
|
+
3: [text_module.default["text-line-clamp"], text_module.default["text-line-clamp-3"]],
|
|
70
|
+
4: [text_module.default["text-line-clamp"], text_module.default["text-line-clamp-4"]],
|
|
71
|
+
5: [text_module.default["text-line-clamp"], text_module.default["text-line-clamp-5"]],
|
|
72
|
+
},
|
|
73
|
+
underline: {
|
|
74
|
+
true: text_module.default["text-underline"],
|
|
75
|
+
},
|
|
76
|
+
strikeThrough: {
|
|
77
|
+
true: text_module.default["text-strike-through"],
|
|
78
|
+
},
|
|
79
|
+
italic: {
|
|
80
|
+
true: text_module.default["text-italic"],
|
|
81
|
+
},
|
|
46
82
|
},
|
|
47
83
|
defaultVariants: {
|
|
48
84
|
variant: "primary",
|
|
49
|
-
size:
|
|
50
|
-
weight:
|
|
85
|
+
size: "small",
|
|
86
|
+
weight: "regular",
|
|
51
87
|
},
|
|
88
|
+
compoundVariants: [
|
|
89
|
+
{
|
|
90
|
+
strikeThrough: true,
|
|
91
|
+
underline: true,
|
|
92
|
+
className: text_module.default["text-italic-strike-through"],
|
|
93
|
+
},
|
|
94
|
+
],
|
|
52
95
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
96
|
+
const Text = React.forwardRef(({ className, size, variant, weight, transform, align, lineClamp, underline, strikeThrough, italic, as: Component = "span", children, ...rest }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Root, { ref: ref, className: textVariants({
|
|
97
|
+
size,
|
|
98
|
+
className,
|
|
99
|
+
weight,
|
|
100
|
+
variant,
|
|
101
|
+
transform,
|
|
102
|
+
align,
|
|
103
|
+
lineClamp,
|
|
104
|
+
underline,
|
|
105
|
+
strikeThrough,
|
|
106
|
+
italic,
|
|
107
|
+
}), ...rest, children: jsxRuntime.jsxRuntimeExports.jsx(Component, { children: children }) })));
|
|
108
|
+
Text.displayName = "Text";
|
|
56
109
|
|
|
57
110
|
exports.Text = Text;
|
|
111
|
+
exports.textVariants = textVariants;
|
|
58
112
|
//# sourceMappingURL=text.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.cjs","sources":["../../../../v1/components/text/text.tsx"],"sourcesContent":["import { cva, VariantProps } from \"class-variance-authority\";\nimport {
|
|
1
|
+
{"version":3,"file":"text.cjs","sources":["../../../../v1/components/text/text.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { ComponentPropsWithoutRef, forwardRef } from \"react\";\nimport * as Slot from \"@radix-ui/react-slot\";\nimport styles from \"./text.module.css\";\n\nexport const textVariants = cva(styles.text, {\n variants: {\n variant: {\n primary: styles[\"text-primary\"],\n secondary: styles[\"text-secondary\"],\n tertiary: styles[\"text-tertiary\"],\n emphasis: styles[\"text-emphasis\"],\n accent: styles[\"text-accent\"],\n attention: styles[\"text-attention\"],\n danger: styles[\"text-danger\"],\n success: styles[\"text-success\"],\n },\n size: {\n micro: styles[\"text-micro\"],\n mini: styles[\"text-mini\"],\n small: styles[\"text-small\"],\n regular: styles[\"text-regular\"],\n large: styles[\"text-large\"],\n 1: styles[\"text-1\"],\n 2: styles[\"text-2\"],\n 3: styles[\"text-3\"],\n 4: styles[\"text-4\"],\n 5: styles[\"text-5\"],\n 6: styles[\"text-6\"],\n 7: styles[\"text-7\"],\n 8: styles[\"text-8\"],\n 9: styles[\"text-9\"],\n 10: styles[\"text-10\"],\n },\n weight: {\n regular: styles[\"text-weight-regular\"],\n medium: styles[\"text-weight-medium\"],\n bold: styles[\"text-weight-bold\"],\n bolder: styles[\"text-weight-bolder\"],\n normal: styles[\"text-weight-normal\"],\n lighter: styles[\"text-weight-lighter\"],\n 100: styles[\"text-weight-100\"],\n 200: styles[\"text-weight-200\"],\n 300: styles[\"text-weight-300\"],\n 400: styles[\"text-weight-400\"],\n 500: styles[\"text-weight-500\"],\n 600: styles[\"text-weight-600\"],\n 700: styles[\"text-weight-700\"],\n 800: styles[\"text-weight-800\"],\n 900: styles[\"text-weight-900\"],\n },\n transform: {\n capitalize: styles[\"text-transform-capitalize\"],\n uppercase: styles[\"text-transform-uppercase\"],\n lowercase: styles[\"text-transform-lowercase\"],\n },\n align: {\n center: styles[\"text-align-center\"],\n start: styles[\"text-align-start\"],\n end: styles[\"text-align-end\"],\n justify: styles[\"text-align-justify\"],\n },\n lineClamp: {\n 1: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-1\"]],\n 2: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-2\"]],\n 3: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-3\"]],\n 4: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-4\"]],\n 5: [styles[\"text-line-clamp\"], styles[\"text-line-clamp-5\"]],\n },\n underline: {\n true: styles[\"text-underline\"],\n },\n strikeThrough: {\n true: styles[\"text-strike-through\"],\n },\n italic: {\n true: styles[\"text-italic\"],\n },\n },\n defaultVariants: {\n variant: \"primary\",\n size: \"small\",\n weight: \"regular\",\n },\n compoundVariants: [\n {\n strikeThrough: true,\n underline: true,\n className: styles[\"text-italic-strike-through\"],\n },\n ],\n});\n\nexport type TextBaseProps = VariantProps<typeof textVariants> & {\n /**\n * @remarks Use \"micro\" | \"mini\" | \"small\" | \"regular\" | \"large\"\n */\n size?:\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | \"micro\"\n | \"mini\"\n | \"small\"\n | \"regular\"\n | \"large\";\n /**\n * @remarks Use \"regular\" | \"medium\"\n */\n weight?:\n | \"regular\"\n | \"medium\"\n | \"bold\"\n | \"bolder\"\n | \"normal\"\n | \"lighter\"\n | 100\n | 200\n | 300\n | 400\n | 500\n | 600\n | 700\n | 800\n | 900;\n};\n\ntype TextSpanProps = { as?: \"span\" } & ComponentPropsWithoutRef<\"span\">;\ntype TextDivProps = { as: \"div\" } & ComponentPropsWithoutRef<\"div\">;\ntype TextLabelProps = { as: \"label\" } & ComponentPropsWithoutRef<\"label\">;\ntype TextPProps = { as: \"p\" } & ComponentPropsWithoutRef<\"p\">;\ntype TextAProps = { as: \"a\" } & ComponentPropsWithoutRef<\"a\">;\ntype TextProps = TextBaseProps &\n (TextSpanProps | TextDivProps | TextLabelProps | TextPProps | TextAProps);\ntype TextRef =\n | HTMLSpanElement\n | HTMLParagraphElement\n | HTMLDivElement\n | HTMLLabelElement\n | HTMLAnchorElement;\n\nexport const Text = forwardRef<TextRef, TextProps>(\n (\n {\n className,\n size,\n variant,\n weight,\n transform,\n align,\n lineClamp,\n underline,\n strikeThrough,\n italic,\n as: Component = \"span\",\n children,\n ...rest\n },\n ref,\n ) => (\n <Slot.Root\n ref={ref}\n className={textVariants({\n size,\n className,\n weight,\n variant,\n transform,\n align,\n lineClamp,\n underline,\n strikeThrough,\n italic,\n })}\n {...rest}>\n <Component>{children}</Component>\n </Slot.Root>\n ),\n);\n\nText.displayName = \"Text\";\n"],"names":["cva","styles","forwardRef","_jsx","Slot.Root"],"mappings":";;;;;;;;MAKa,YAAY,GAAGA,WAAG,CAACC,mBAAM,C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AU,CAC5B,CACE,EACE,SAAS,EACT,IAAI,EACJ,OAAO,EACP,MAAM,EACN,SAAS,EACT,KAAK,EACL,SAAS,EACT,SAAS,EACT,aAAa,EACb,MAAM,EACN,EAAE,EAAE,SAAS,GAAG,MAAM,EACtB,QAAQ,EACR,GAAG,IAAI,EACR,EACD,GAAG,MAEHC,gCAAC,CAAAC,UAAS,EACR,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,YAAY,CAAC;QACtB,IAAI;QACJ,SAAS;QACT,MAAM;QACN,OAAO;QACP,SAAS;QACT,KAAK;QACL,SAAS;QACT,SAAS;QACT,aAAa;QACb,MAAM;KACP,CAAC,EAAA,GACE,IAAI,EAAA,QAAA,EACRD,gCAAC,CAAA,SAAS,EAAE,EAAA,QAAA,EAAA,QAAQ,EAAa,CAAA,EAAA,CACvB,CACb,EACD;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM;;;;;"}
|
|
@@ -1,11 +1,43 @@
|
|
|
1
|
-
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
3
|
+
export declare const textVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "secondary" | "tertiary" | "emphasis" | "accent" | "attention" | "danger" | "success" | null | undefined;
|
|
5
|
-
size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | null | undefined;
|
|
6
|
-
weight?: "bold" | "bolder" | "normal" | "lighter" |
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
size?: "small" | "large" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | "micro" | "mini" | "regular" | 10 | null | undefined;
|
|
6
|
+
weight?: "medium" | "bold" | "regular" | "bolder" | "normal" | "lighter" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | null | undefined;
|
|
7
|
+
transform?: "capitalize" | "uppercase" | "lowercase" | null | undefined;
|
|
8
|
+
align?: "start" | "center" | "end" | "justify" | null | undefined;
|
|
9
|
+
lineClamp?: 1 | 2 | 3 | 4 | 5 | null | undefined;
|
|
10
|
+
underline?: boolean | null | undefined;
|
|
11
|
+
strikeThrough?: boolean | null | undefined;
|
|
12
|
+
italic?: boolean | null | undefined;
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
14
|
+
export type TextBaseProps = VariantProps<typeof textVariants> & {
|
|
15
|
+
/**
|
|
16
|
+
* @remarks Use "micro" | "mini" | "small" | "regular" | "large"
|
|
17
|
+
*/
|
|
18
|
+
size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | "micro" | "mini" | "small" | "regular" | "large";
|
|
19
|
+
/**
|
|
20
|
+
* @remarks Use "regular" | "medium"
|
|
21
|
+
*/
|
|
22
|
+
weight?: "regular" | "medium" | "bold" | "bolder" | "normal" | "lighter" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
23
|
+
};
|
|
24
|
+
type TextSpanProps = {
|
|
25
|
+
as?: "span";
|
|
26
|
+
} & ComponentPropsWithoutRef<"span">;
|
|
27
|
+
type TextDivProps = {
|
|
28
|
+
as: "div";
|
|
29
|
+
} & ComponentPropsWithoutRef<"div">;
|
|
30
|
+
type TextLabelProps = {
|
|
31
|
+
as: "label";
|
|
32
|
+
} & ComponentPropsWithoutRef<"label">;
|
|
33
|
+
type TextPProps = {
|
|
34
|
+
as: "p";
|
|
35
|
+
} & ComponentPropsWithoutRef<"p">;
|
|
36
|
+
type TextAProps = {
|
|
37
|
+
as: "a";
|
|
38
|
+
} & ComponentPropsWithoutRef<"a">;
|
|
39
|
+
type TextProps = TextBaseProps & (TextSpanProps | TextDivProps | TextLabelProps | TextPProps | TextAProps);
|
|
40
|
+
type TextRef = HTMLSpanElement | HTMLParagraphElement | HTMLDivElement | HTMLLabelElement | HTMLAnchorElement;
|
|
41
|
+
export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<TextRef>>;
|
|
10
42
|
export {};
|
|
11
43
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../v1/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../v1/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAC;AAI7D,eAAO,MAAM,YAAY;;;;;;;;;;8EAsFvB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IAC9D;;OAEG;IACH,IAAI,CAAC,EACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,OAAO,GACP,MAAM,GACN,OAAO,GACP,SAAS,GACT,OAAO,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EACH,SAAS,GACT,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAC;CACT,CAAC;AAEF,KAAK,aAAa,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC;AACxE,KAAK,YAAY,GAAG;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AACpE,KAAK,cAAc,GAAG;IAAE,EAAE,EAAE,OAAO,CAAA;CAAE,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAC1E,KAAK,UAAU,GAAG;IAAE,EAAE,EAAE,GAAG,CAAA;CAAE,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAC9D,KAAK,UAAU,GAAG;IAAE,EAAE,EAAE,GAAG,CAAA;CAAE,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAC9D,KAAK,SAAS,GAAG,aAAa,GAC5B,CAAC,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;AAC5E,KAAK,OAAO,GACR,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB,eAAO,MAAM,IAAI,+FAqChB,CAAC"}
|
|
@@ -1,56 +1,109 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
2
|
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
3
|
-
import
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Root as $5e63c961fc1ce211$export$be92b6f5f03c0fe9 } from '../../node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js';
|
|
5
|
+
import styles from './text.module.css.js';
|
|
4
6
|
|
|
5
|
-
const
|
|
7
|
+
const textVariants = cva(styles.text, {
|
|
6
8
|
variants: {
|
|
7
9
|
variant: {
|
|
8
|
-
primary:
|
|
9
|
-
secondary:
|
|
10
|
-
tertiary:
|
|
11
|
-
emphasis:
|
|
12
|
-
accent:
|
|
13
|
-
attention:
|
|
14
|
-
danger:
|
|
15
|
-
success:
|
|
10
|
+
primary: styles["text-primary"],
|
|
11
|
+
secondary: styles["text-secondary"],
|
|
12
|
+
tertiary: styles["text-tertiary"],
|
|
13
|
+
emphasis: styles["text-emphasis"],
|
|
14
|
+
accent: styles["text-accent"],
|
|
15
|
+
attention: styles["text-attention"],
|
|
16
|
+
danger: styles["text-danger"],
|
|
17
|
+
success: styles["text-success"],
|
|
16
18
|
},
|
|
17
19
|
size: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
micro: styles["text-micro"],
|
|
21
|
+
mini: styles["text-mini"],
|
|
22
|
+
small: styles["text-small"],
|
|
23
|
+
regular: styles["text-regular"],
|
|
24
|
+
large: styles["text-large"],
|
|
25
|
+
1: styles["text-1"],
|
|
26
|
+
2: styles["text-2"],
|
|
27
|
+
3: styles["text-3"],
|
|
28
|
+
4: styles["text-4"],
|
|
29
|
+
5: styles["text-5"],
|
|
30
|
+
6: styles["text-6"],
|
|
31
|
+
7: styles["text-7"],
|
|
32
|
+
8: styles["text-8"],
|
|
33
|
+
9: styles["text-9"],
|
|
34
|
+
10: styles["text-10"],
|
|
28
35
|
},
|
|
29
36
|
weight: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
regular: styles["text-weight-regular"],
|
|
38
|
+
medium: styles["text-weight-medium"],
|
|
39
|
+
bold: styles["text-weight-bold"],
|
|
40
|
+
bolder: styles["text-weight-bolder"],
|
|
41
|
+
normal: styles["text-weight-normal"],
|
|
42
|
+
lighter: styles["text-weight-lighter"],
|
|
43
|
+
100: styles["text-weight-100"],
|
|
44
|
+
200: styles["text-weight-200"],
|
|
45
|
+
300: styles["text-weight-300"],
|
|
46
|
+
400: styles["text-weight-400"],
|
|
47
|
+
500: styles["text-weight-500"],
|
|
48
|
+
600: styles["text-weight-600"],
|
|
49
|
+
700: styles["text-weight-700"],
|
|
50
|
+
800: styles["text-weight-800"],
|
|
51
|
+
900: styles["text-weight-900"],
|
|
52
|
+
},
|
|
53
|
+
transform: {
|
|
54
|
+
capitalize: styles["text-transform-capitalize"],
|
|
55
|
+
uppercase: styles["text-transform-uppercase"],
|
|
56
|
+
lowercase: styles["text-transform-lowercase"],
|
|
57
|
+
},
|
|
58
|
+
align: {
|
|
59
|
+
center: styles["text-align-center"],
|
|
60
|
+
start: styles["text-align-start"],
|
|
61
|
+
end: styles["text-align-end"],
|
|
62
|
+
justify: styles["text-align-justify"],
|
|
63
|
+
},
|
|
64
|
+
lineClamp: {
|
|
65
|
+
1: [styles["text-line-clamp"], styles["text-line-clamp-1"]],
|
|
66
|
+
2: [styles["text-line-clamp"], styles["text-line-clamp-2"]],
|
|
67
|
+
3: [styles["text-line-clamp"], styles["text-line-clamp-3"]],
|
|
68
|
+
4: [styles["text-line-clamp"], styles["text-line-clamp-4"]],
|
|
69
|
+
5: [styles["text-line-clamp"], styles["text-line-clamp-5"]],
|
|
70
|
+
},
|
|
71
|
+
underline: {
|
|
72
|
+
true: styles["text-underline"],
|
|
73
|
+
},
|
|
74
|
+
strikeThrough: {
|
|
75
|
+
true: styles["text-strike-through"],
|
|
76
|
+
},
|
|
77
|
+
italic: {
|
|
78
|
+
true: styles["text-italic"],
|
|
43
79
|
},
|
|
44
80
|
},
|
|
45
81
|
defaultVariants: {
|
|
46
82
|
variant: "primary",
|
|
47
|
-
size:
|
|
48
|
-
weight:
|
|
83
|
+
size: "small",
|
|
84
|
+
weight: "regular",
|
|
49
85
|
},
|
|
86
|
+
compoundVariants: [
|
|
87
|
+
{
|
|
88
|
+
strikeThrough: true,
|
|
89
|
+
underline: true,
|
|
90
|
+
className: styles["text-italic-strike-through"],
|
|
91
|
+
},
|
|
92
|
+
],
|
|
50
93
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
94
|
+
const Text = forwardRef(({ className, size, variant, weight, transform, align, lineClamp, underline, strikeThrough, italic, as: Component = "span", children, ...rest }, ref) => (jsxRuntimeExports.jsx($5e63c961fc1ce211$export$be92b6f5f03c0fe9, { ref: ref, className: textVariants({
|
|
95
|
+
size,
|
|
96
|
+
className,
|
|
97
|
+
weight,
|
|
98
|
+
variant,
|
|
99
|
+
transform,
|
|
100
|
+
align,
|
|
101
|
+
lineClamp,
|
|
102
|
+
underline,
|
|
103
|
+
strikeThrough,
|
|
104
|
+
italic,
|
|
105
|
+
}), ...rest, children: jsxRuntimeExports.jsx(Component, { children: children }) })));
|
|
106
|
+
Text.displayName = "Text";
|
|
54
107
|
|
|
55
|
-
export { Text };
|
|
108
|
+
export { Text, textVariants };
|
|
56
109
|
//# sourceMappingURL=text.js.map
|