@loomhq/lens 12.5.0 → 12.6.1
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/cjs/index.js +41 -53
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +41 -53
- package/dist/esm/index.js.map +2 -2
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/button/button.d.ts.map +1 -1
- package/dist/types/components/list/list.d.ts +1 -1
- package/dist/types/components/list/list.d.ts.map +1 -1
- package/dist/types/components/switch/switch.d.ts +2 -1
- package/dist/types/components/switch/switch.d.ts.map +1 -1
- package/dist/types/components/tabs/tabs.d.ts +1 -3
- package/dist/types/components/tabs/tabs.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ declare const ButtonWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
} & ButtonWrapperProps, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
7
7
|
declare const Button: ({ size, children, variant, hasFullWidth, icon, iconPosition, iconBefore, iconAfter, logoSrc, hasLoader, isDisabled, ariaDisabled, htmlTag, interactionName, onClick, refHandler, ...props }: ButtonProps & React.ComponentProps<typeof ButtonWrapper> & Omit<LensButtonProps, keyof ButtonProps & React.ComponentProps<typeof ButtonWrapper>>) => React.JSX.Element;
|
|
8
|
-
type Variant = 'neutral' | 'primary' | 'secondary' | 'record' | 'upgrade' | 'danger' | 'ai';
|
|
8
|
+
type Variant = 'neutral' | 'neutralSecondary' | 'primary' | 'secondary' | 'record' | 'upgrade' | 'danger' | 'ai';
|
|
9
9
|
interface ButtonProps {
|
|
10
10
|
size?: 'small' | 'medium' | 'large';
|
|
11
11
|
variant?: Variant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAEA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ACvD,eAAO,MAAM,iBAAiB,UAA6B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,UAAkB,CAAC;AACjD,eAAO,MAAM,sBAAsB,UAAoB,CAAC;AAExD,eAAe,MAAM,CAAC"}
|
|
@@ -4,7 +4,7 @@ declare const ListWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
} & ListProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
-
export declare const ListRow: ({ children, htmlTag, className, backgroundColor, onClick, href, ...props }: ListRowProps) => React.JSX.Element;
|
|
7
|
+
export declare const ListRow: ({ children, htmlTag, className, backgroundColor, onClick, href, role, ...props }: ListRowProps) => React.JSX.Element;
|
|
8
8
|
declare const List: ({ children, columns, gap, variant, ...props }: ListProps & React.ComponentProps<typeof ListWrapper> & Omit<LensDivProps, keyof ListProps & React.ComponentProps<typeof ListWrapper>>) => React.JSX.Element;
|
|
9
9
|
interface SharedProps {
|
|
10
10
|
padding?: ResponsiveType<string | number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list/list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAmC3D,QAAA,MAAM,WAAW;;;iGAOhB,CAAC;AAmDF,eAAO,MAAM,OAAO,GAAI,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list/list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAmC3D,QAAA,MAAM,WAAW;;;iGAOhB,CAAC;AAmDF,eAAO,MAAM,OAAO,GAAI,k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CAAC,EAAE,MAAM,CAAC;CACf;AAUD,KAAK,SAAS,GAAG;IACf,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC9B,GAAG,CAAC,EAAE,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -4,7 +4,7 @@ declare const SwitchInput: import("@emotion/styled").StyledComponent<{
|
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
} & SwitchInputProps, React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
7
|
-
declare const Switch: ({ isActive, isDisabled, onChange, size, ariaLabelledby, ariaLabel, ...props }: SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, "size"> & Omit<LensInputProps, keyof SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, "size">>) => React.JSX.Element;
|
|
7
|
+
declare const Switch: ({ isActive, isDisabled, onChange, size, ariaLabelledby, ariaLabel, ariaDescribedby, ...props }: SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, "size"> & Omit<LensInputProps, keyof SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, "size">>) => React.JSX.Element;
|
|
8
8
|
type SwitchProps = {
|
|
9
9
|
isActive?: boolean;
|
|
10
10
|
isDisabled?: boolean;
|
|
@@ -12,6 +12,7 @@ type SwitchProps = {
|
|
|
12
12
|
size?: 'medium' | 'large';
|
|
13
13
|
ariaLabelledby?: string;
|
|
14
14
|
ariaLabel?: string;
|
|
15
|
+
ariaDescribedby?: string;
|
|
15
16
|
};
|
|
16
17
|
type SwitchInputProps = {
|
|
17
18
|
switchSize?: 'medium' | 'large';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAyD7C,QAAA,MAAM,WAAW;;;iHAoChB,CAAC;AAyBF,QAAA,MAAM,MAAM,GAAI
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAyD7C,QAAA,MAAM,WAAW;;;iHAoChB,CAAC;AAyBF,QAAA,MAAM,MAAM,GAAI,gGASb,WAAW,GACZ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,EAAE,MAAM,CAAC,GACtD,IAAI,CACF,cAAc,EACd,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,EAAE,MAAM,CAAC,CAC3E,sBA6BF,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACnC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CACjC,CAAC;AAQF,eAAe,MAAM,CAAC"}
|
|
@@ -5,15 +5,13 @@ declare const TabWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
} & TabWrapperProps, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
7
7
|
export declare const Tab: ({ children, isActive, htmlTag, icon, ...props }: TabProps & React.ComponentProps<typeof TabWrapper> & Omit<LensButtonProps, keyof TabProps & React.ComponentProps<typeof TabWrapper>>) => React.JSX.Element;
|
|
8
|
-
declare const Tabs: ({ children, scrollOffset, hasFullTabs, isPilledDesign, hasBottomBorder,
|
|
8
|
+
declare const Tabs: ({ children, scrollOffset, hasFullTabs, isPilledDesign, hasBottomBorder, ...props }: TabsProps) => React.JSX.Element;
|
|
9
9
|
type TabsProps = {
|
|
10
10
|
scrollOffset?: number | string;
|
|
11
11
|
hasFullTabs?: boolean;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
isPilledDesign?: boolean;
|
|
14
14
|
hasBottomBorder?: boolean;
|
|
15
|
-
role?: string;
|
|
16
|
-
ariaOrientation?: 'horizontal' | 'vertical';
|
|
17
15
|
};
|
|
18
16
|
type TabProps = {
|
|
19
17
|
isActive?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAqF9C,QAAA,MAAM,UAAU;;;mHAiDf,CAAC;AA4CF,eAAO,MAAM,GAAG,GAAI,iDAMjB,QAAQ,GACT,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,GACvC,IAAI,CACF,eAAe,EACf,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CACzD,sBAwCF,CAAC;AAEF,QAAA,MAAM,IAAI,GAAI,oFAOX,SAAS,sBA+BX,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,GAAG,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAYF,eAAe,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomhq/lens",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.6.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://packages.atlassian.com/api/npm/npm-public/",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"build:ts:icons": "tsc -p tsconfig.build-icons.json",
|
|
125
125
|
"build:ts": "pnpm build:types",
|
|
126
126
|
"build:types": "tsc && pnpm build:ts:icons",
|
|
127
|
-
"build": "node build.mjs",
|
|
127
|
+
"build": "node build.mjs && pnpm build:types",
|
|
128
128
|
"clean:build": "rm -rf ./dist && rm -f *.tsbuildinfo",
|
|
129
129
|
"deploy:docs": "next export -o docs && touch docs/.nojekyll && cp ./CNAME docs/",
|
|
130
130
|
"dev": "next",
|