@infinityloop.labs/ui-kit 0.0.10 → 0.0.12
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/components/atoms/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/atoms/Button/index.d.ts +21 -10
- package/dist/components/atoms/Calendar/index.d.ts +19 -0
- package/dist/components/atoms/Dropdown/index.d.ts +39 -0
- package/dist/components/atoms/Image/index.d.ts +53 -0
- package/dist/components/atoms/Input/index.d.ts +38 -1
- package/dist/components/atoms/Paper/index.d.ts +36 -3
- package/dist/components/atoms/Tag/index.d.ts +16 -0
- package/dist/components/atoms/Timer/index.d.ts +20 -0
- package/dist/components/atoms/Toggle/index.d.ts +9 -0
- package/dist/components/atoms/Typography/index.d.ts +16 -5
- package/dist/components/atoms/index.d.ts +7 -0
- package/dist/components/atoms/shared/calendar-picker.d.ts +42 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/molecules/Accordion/index.d.ts +27 -0
- package/dist/components/molecules/CodeBrick/index.d.ts +80 -0
- package/dist/components/molecules/CodeBrick/lib/highlight.d.ts +2 -0
- package/dist/components/molecules/EditableTypography/index.d.ts +21 -0
- package/dist/components/molecules/MathEquationBlock/index.d.ts +14 -0
- package/dist/components/molecules/SlideTemplates/StoreSlide/index.d.ts +46 -0
- package/dist/components/molecules/SlideTemplates/index.d.ts +1 -0
- package/dist/components/molecules/Slider/index.d.ts +19 -0
- package/dist/components/molecules/Slider/slides/BigHorizontalSlide.d.ts +15 -0
- package/dist/components/molecules/Slider/slides/MediumHorizontalSlide.d.ts +10 -0
- package/dist/components/molecules/Slider/slides/MediumVerticalSlide.d.ts +4 -0
- package/dist/components/molecules/Slider/slides/examples.d.ts +35 -0
- package/dist/components/molecules/Slider/slides/index.d.ts +4 -0
- package/dist/components/molecules/index.d.ts +7 -0
- package/dist/components/templates/TableLight/TableLight.d.ts +23 -0
- package/dist/components/templates/TableLight/index.d.ts +1 -0
- package/dist/components/templates/index.d.ts +1 -0
- package/dist/components/ui/breadcrumbs.d.ts +18 -0
- package/dist/components/ui/index.d.ts +2 -1
- package/dist/components/ui/shadcn-io/color-picker/index.d.ts +1 -1
- package/dist/constants/css.d.ts +4 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +46943 -7237
- package/dist/index.umd.js +287 -35
- package/dist/style.css +1 -1
- package/package.json +29 -6
- package/dist/components/ui/button.d.ts +0 -10
- package/dist/components/ui/input.d.ts +0 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { StoreSlideTagItemType } from '../../SlideTemplates';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type SliderDemoSlideItemType = {
|
|
4
|
+
id: string;
|
|
5
|
+
coverImageSrc: string;
|
|
6
|
+
brandName: string;
|
|
7
|
+
heading: string;
|
|
8
|
+
accentText: string;
|
|
9
|
+
description: string;
|
|
10
|
+
priceText: string;
|
|
11
|
+
tagText: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const courseSlideData: SliderDemoSlideItemType[];
|
|
14
|
+
export declare const sliderSlideComponentTypeOptions: readonly ["MediumVerticalSlide", "MediumHorizontalSlide", "BigHorizontalSlide"];
|
|
15
|
+
export type SliderSlideComponentType = (typeof sliderSlideComponentTypeOptions)[number];
|
|
16
|
+
export declare const mediumVerticalSlideWidth = 460;
|
|
17
|
+
export declare const mediumHorizontalSlideWidth = 520;
|
|
18
|
+
export declare const bigHorizontalSlideWidth = 620;
|
|
19
|
+
export declare const mediumVerticalSlideWidthStyle: React.CSSProperties;
|
|
20
|
+
export declare const mediumHorizontalSlideWidthStyle: React.CSSProperties;
|
|
21
|
+
export declare const bigHorizontalSlideWidthStyle: React.CSSProperties;
|
|
22
|
+
type TagVariantType = 'no-tags' | 'one-tag' | 'two-tags' | 'two-other-tags';
|
|
23
|
+
export declare const getTagsByVariant: (variant: TagVariantType, slideId: string, baseLabel: string) => {
|
|
24
|
+
tags: StoreSlideTagItemType[];
|
|
25
|
+
tagText?: string;
|
|
26
|
+
};
|
|
27
|
+
export type BuildSliderSlidesPropertyType = {
|
|
28
|
+
componentType: SliderSlideComponentType;
|
|
29
|
+
isEditModeEnabled?: boolean;
|
|
30
|
+
isEditModeDisabled?: boolean;
|
|
31
|
+
onTagClick?: (id: string) => void;
|
|
32
|
+
onTagLabelChange?: (id: string, value: string) => void;
|
|
33
|
+
};
|
|
34
|
+
export declare const buildSliderSlides: ({ componentType, isEditModeEnabled, isEditModeDisabled, onTagClick, onTagLabelChange, }: BuildSliderSlidesPropertyType) => React.ReactNode[];
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TypographyColorType, TypographyType } from '../../atoms/Typography';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type TableLightRowType = Record<string, string | number | null | undefined>;
|
|
4
|
+
export type TableLightColumnType = {
|
|
5
|
+
key: string;
|
|
6
|
+
header: string;
|
|
7
|
+
typography?: TypographyType;
|
|
8
|
+
color?: TypographyColorType;
|
|
9
|
+
width?: number | string;
|
|
10
|
+
isEditable?: boolean;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
contentClassName?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export type TableLightPropertyType = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
16
|
+
columns: TableLightColumnType[];
|
|
17
|
+
rows: TableLightRowType[];
|
|
18
|
+
isEditModeEnabled?: boolean;
|
|
19
|
+
isEditModeDisabled?: boolean;
|
|
20
|
+
isInlineEditingLocked?: boolean;
|
|
21
|
+
onRowsChange?: (rows: TableLightRowType[]) => void;
|
|
22
|
+
};
|
|
23
|
+
export declare const TableLight: ({ columns, rows, className, isEditModeEnabled, isEditModeDisabled, isInlineEditingLocked, onRowsChange, ...property }: TableLightPropertyType) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TableLight';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TableLight';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type BreadcrumbsItemObjectType = {
|
|
3
|
+
key?: React.Key;
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: React.ComponentProps<'a'>['onClick'];
|
|
7
|
+
isCurrent?: boolean;
|
|
8
|
+
component?: React.ReactElement;
|
|
9
|
+
};
|
|
10
|
+
export type BreadcrumbsItemType = BreadcrumbsItemObjectType | React.ReactElement;
|
|
11
|
+
type BreadcrumbsPropertyType = React.ComponentProps<'nav'> & {
|
|
12
|
+
items: BreadcrumbsItemType[];
|
|
13
|
+
maxItems?: number;
|
|
14
|
+
separator?: React.ReactNode;
|
|
15
|
+
listClassName?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const Breadcrumbs: ({ items, maxItems, separator, listClassName, ...props }: BreadcrumbsPropertyType) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as Color } from 'color';
|
|
2
2
|
import { Slider } from 'radix-ui';
|
|
3
3
|
import { ComponentProps, HTMLAttributes } from 'react';
|
|
4
|
-
import { Button } from '
|
|
4
|
+
import { Button } from '../../../atoms/Button';
|
|
5
5
|
import { SelectTrigger } from '../../select';
|
|
6
6
|
|
|
7
7
|
interface ColorPickerContextValue {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const HIDDEN_BY_SCROLL_CLASS = "opacity-0 pointer-events-none";
|
|
2
|
+
export declare const FAST_TRANSITION_CLASS = "transition-all duration-300";
|
|
3
|
+
export declare const GLASS_CLASS = "backdrop-blur-xl bg-opacity-95";
|
|
4
|
+
export declare const GLASS_SURFACE_CLASS = "bg-(--card)/95 border border-(--border) backdrop-blur-xl";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './css';
|
package/dist/index.d.ts
CHANGED