@revotech-group/revotech-ui-kit 0.0.50
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/LICENSE +21 -0
- package/README.md +30 -0
- package/dist/revotech-ui-kit.js +12825 -0
- package/dist/revotech-ui-kit.umd.cjs +5400 -0
- package/dist/src/assets/icons/arrow-up-circle.icon.d.ts +1 -0
- package/dist/src/assets/icons/arrows.icon.d.ts +1 -0
- package/dist/src/assets/icons/chorven-down.icon.d.ts +1 -0
- package/dist/src/assets/icons/circle-check.icon.d.ts +1 -0
- package/dist/src/assets/icons/circle-x.icon.d.ts +1 -0
- package/dist/src/assets/icons/circle.icon.d.ts +1 -0
- package/dist/src/assets/icons/close.icon.d.ts +1 -0
- package/dist/src/assets/icons/dot.icon.d.ts +1 -0
- package/dist/src/assets/icons/help-circle.icon.d.ts +1 -0
- package/dist/src/assets/icons/index.d.ts +13 -0
- package/dist/src/assets/icons/radio-group.icon.d.ts +1 -0
- package/dist/src/assets/icons/radio.icon.d.ts +1 -0
- package/dist/src/assets/icons/search.icon.d.ts +1 -0
- package/dist/src/assets/icons/tick.icon.d.ts +1 -0
- package/dist/src/components/atoms/accordion/accordion-content.d.ts +14 -0
- package/dist/src/components/atoms/accordion/accordion-item.d.ts +21 -0
- package/dist/src/components/atoms/accordion/accordion-trigger.d.ts +20 -0
- package/dist/src/components/atoms/accordion/accordion.atoms.d.ts +23 -0
- package/dist/src/components/atoms/accordion/accordion.defs.d.ts +10 -0
- package/dist/src/components/atoms/accordion/accordion.stories.d.ts +5 -0
- package/dist/src/components/atoms/accordion/accordion.styles.d.ts +0 -0
- package/dist/src/components/atoms/alert/alert-description.d.ts +5 -0
- package/dist/src/components/atoms/alert/alert-title.d.ts +5 -0
- package/dist/src/components/atoms/alert/alert.atom.d.ts +23 -0
- package/dist/src/components/atoms/alert/alert.stories.d.ts +5 -0
- package/dist/src/components/atoms/alert/alert.styles.d.ts +4 -0
- package/dist/src/components/atoms/alert/alert.types.d.ts +1 -0
- package/dist/src/components/atoms/aspect-ratio/aspect-ratio-atom.d.ts +12 -0
- package/dist/src/components/atoms/aspect-ratio/aspect-ratio.stories.d.ts +4 -0
- package/dist/src/components/atoms/avatar/avatar-fallback.d.ts +10 -0
- package/dist/src/components/atoms/avatar/avatar-image.d.ts +12 -0
- package/dist/src/components/atoms/avatar/avatar.atom.d.ts +11 -0
- package/dist/src/components/atoms/avatar/avatar.stories.d.ts +4 -0
- package/dist/src/components/atoms/avatar/avatar.style.d.ts +3 -0
- package/dist/src/components/atoms/badge/badge.atom.d.ts +18 -0
- package/dist/src/components/atoms/badge/badge.stories.d.ts +5 -0
- package/dist/src/components/atoms/badge/badge.style.d.ts +3 -0
- package/dist/src/components/atoms/badge/badge.type.d.ts +1 -0
- package/dist/src/components/atoms/button/button.atom.d.ts +24 -0
- package/dist/src/components/atoms/button/button.stories.d.ts +5 -0
- package/dist/src/components/atoms/button/button.style.d.ts +4 -0
- package/dist/src/components/atoms/button/button.type.d.ts +3 -0
- package/dist/src/components/atoms/calendar/calendar.atom.d.ts +25 -0
- package/dist/src/components/atoms/calendar/calendar.stories.d.ts +4 -0
- package/dist/src/components/atoms/calendar/calendar.style.d.ts +4 -0
- package/dist/src/components/atoms/calendar/calendar.type.d.ts +2 -0
- package/dist/src/components/atoms/card/card-content.d.ts +5 -0
- package/dist/src/components/atoms/card/card-description.d.ts +5 -0
- package/dist/src/components/atoms/card/card-footer.d.ts +5 -0
- package/dist/src/components/atoms/card/card-header.d.ts +5 -0
- package/dist/src/components/atoms/card/card-title.d.ts +5 -0
- package/dist/src/components/atoms/card/card.atom.d.ts +21 -0
- package/dist/src/components/atoms/card/card.stories.d.ts +5 -0
- package/dist/src/components/atoms/carousel/carousel.atom.d.ts +21 -0
- package/dist/src/components/atoms/carousel/carousel.stories.d.ts +6 -0
- package/dist/src/components/atoms/checkbox/checkbox.atom.d.ts +19 -0
- package/dist/src/components/atoms/checkbox/checkbox.stories.d.ts +6 -0
- package/dist/src/components/atoms/checkbox/checkbox.style.d.ts +2 -0
- package/dist/src/components/atoms/checkbox/checkbox.type.d.ts +21 -0
- package/dist/src/components/atoms/collapsible/collapsible-content.d.ts +11 -0
- package/dist/src/components/atoms/collapsible/collapsible-trigger.d.ts +14 -0
- package/dist/src/components/atoms/collapsible/collapsible.atom.d.ts +17 -0
- package/dist/src/components/atoms/collapsible/collapsible.stories.d.ts +5 -0
- package/dist/src/components/atoms/combobox/combo-box-empty.d.ts +11 -0
- package/dist/src/components/atoms/combobox/combo-box-group.d.ts +25 -0
- package/dist/src/components/atoms/combobox/combo-box-input.d.ts +18 -0
- package/dist/src/components/atoms/combobox/combo-box-item.d.ts +22 -0
- package/dist/src/components/atoms/combobox/combo-box-trigger.d.ts +15 -0
- package/dist/src/components/atoms/combobox/combo-box-value.d.ts +18 -0
- package/dist/src/components/atoms/combobox/combo-box.atom.d.ts +25 -0
- package/dist/src/components/atoms/combobox/combo-box.stories.d.ts +4 -0
- package/dist/src/components/atoms/command/command-empty.atom.d.ts +9 -0
- package/dist/src/components/atoms/command/command-group.atom.d.ts +10 -0
- package/dist/src/components/atoms/command/command-input.atom.d.ts +10 -0
- package/dist/src/components/atoms/command/command-item.atom.d.ts +13 -0
- package/dist/src/components/atoms/command/command-list.atom.d.ts +6 -0
- package/dist/src/components/atoms/command/command-separator.atom.d.ts +9 -0
- package/dist/src/components/atoms/command/command.atom.d.ts +7 -0
- package/dist/src/components/atoms/command/command.stories.d.ts +5 -0
- package/dist/src/components/atoms/context-menu/context-menu-checkbox-Item.d.ts +15 -0
- package/dist/src/components/atoms/context-menu/context-menu-content.d.ts +13 -0
- package/dist/src/components/atoms/context-menu/context-menu-group.d.ts +10 -0
- package/dist/src/components/atoms/context-menu/context-menu-item.d.ts +12 -0
- package/dist/src/components/atoms/context-menu/context-menu-radio-item.d.ts +15 -0
- package/dist/src/components/atoms/context-menu/context-menu-seperator.d.ts +9 -0
- package/dist/src/components/atoms/context-menu/context-menu-shortcut.d.ts +5 -0
- package/dist/src/components/atoms/context-menu/context-menu.atom.d.ts +33 -0
- package/dist/src/components/atoms/context-menu/contextMenu.stories.d.ts +4 -0
- package/dist/src/components/atoms/context-menu/contextMenu.style.d.ts +2 -0
- package/dist/src/components/atoms/date-picker/date-picker.atom.d.ts +13 -0
- package/dist/src/components/atoms/date-picker/date-picker.stories.d.ts +4 -0
- package/dist/src/components/atoms/dialog/dialog-close.d.ts +12 -0
- package/dist/src/components/atoms/dialog/dialog-content.d.ts +8 -0
- package/dist/src/components/atoms/dialog/dialog-footer.d.ts +5 -0
- package/dist/src/components/atoms/dialog/dialog-header.d.ts +7 -0
- package/dist/src/components/atoms/dialog/dialog-overly.d.ts +5 -0
- package/dist/src/components/atoms/dialog/dialog-trigger.d.ts +8 -0
- package/dist/src/components/atoms/dialog/dialog.atom.d.ts +26 -0
- package/dist/src/components/atoms/dialog/dialog.stories.d.ts +6 -0
- package/dist/src/components/atoms/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +15 -0
- package/dist/src/components/atoms/dropdown-menu/dropdown-menu-content.d.ts +13 -0
- package/dist/src/components/atoms/dropdown-menu/dropdown-menu-group.d.ts +10 -0
- package/dist/src/components/atoms/dropdown-menu/dropdown-menu-item.d.ts +12 -0
- package/dist/src/components/atoms/dropdown-menu/dropdown-menu-radio-item.d.ts +15 -0
- package/dist/src/components/atoms/dropdown-menu/dropdown-menu-seperator.d.ts +9 -0
- package/dist/src/components/atoms/dropdown-menu/dropdown-menu-shortcut.d.ts +5 -0
- package/dist/src/components/atoms/dropdown-menu/dropdown-menu.atom.d.ts +31 -0
- package/dist/src/components/atoms/dropdown-menu/dropdownMenu.stories.d.ts +6 -0
- package/dist/src/components/atoms/dropdown-menu/dropdownMenu.style.d.ts +2 -0
- package/dist/src/components/atoms/hoverCard/hover-card-content.d.ts +17 -0
- package/dist/src/components/atoms/hoverCard/hover-card.atom.d.ts +18 -0
- package/dist/src/components/atoms/hoverCard/hover-card.stories.d.ts +4 -0
- package/dist/src/components/atoms/index.d.ts +48 -0
- package/dist/src/components/atoms/input/input.atom.d.ts +22 -0
- package/dist/src/components/atoms/input/input.stories.d.ts +5 -0
- package/dist/src/components/atoms/input/input.styles.d.ts +1 -0
- package/dist/src/components/atoms/input/input.type.d.ts +21 -0
- package/dist/src/components/atoms/label/label.atom.d.ts +16 -0
- package/dist/src/components/atoms/label/label.stories.d.ts +5 -0
- package/dist/src/components/atoms/label/label.style.d.ts +1 -0
- package/dist/src/components/atoms/menubar/menubar-checkbox.item.d.ts +15 -0
- package/dist/src/components/atoms/menubar/menubar-content.d.ts +15 -0
- package/dist/src/components/atoms/menubar/menubar-group.d.ts +10 -0
- package/dist/src/components/atoms/menubar/menubar-item.d.ts +12 -0
- package/dist/src/components/atoms/menubar/menubar-menu.d.ts +23 -0
- package/dist/src/components/atoms/menubar/menubar-radio-item.d.ts +15 -0
- package/dist/src/components/atoms/menubar/menubar-seperator.d.ts +9 -0
- package/dist/src/components/atoms/menubar/menubar-shortcut.d.ts +5 -0
- package/dist/src/components/atoms/menubar/menubar.atom.d.ts +28 -0
- package/dist/src/components/atoms/menubar/menubar.stories.d.ts +4 -0
- package/dist/src/components/atoms/navigation-menu/navigation-menu-content.d.ts +16 -0
- package/dist/src/components/atoms/navigation-menu/navigation-menu-item.d.ts +23 -0
- package/dist/src/components/atoms/navigation-menu/navigation-menu-link.d.ts +7 -0
- package/dist/src/components/atoms/navigation-menu/navigation-menu-list.d.ts +6 -0
- package/dist/src/components/atoms/navigation-menu/navigation-menu.d.ts +20 -0
- package/dist/src/components/atoms/navigation-menu/navigation-menu.stories.d.ts +4 -0
- package/dist/src/components/atoms/pagination/pagination-content.d.ts +6 -0
- package/dist/src/components/atoms/pagination/pagination-ellipsis.d.ts +6 -0
- package/dist/src/components/atoms/pagination/pagination-item.d.ts +14 -0
- package/dist/src/components/atoms/pagination/pagination-link.d.ts +17 -0
- package/dist/src/components/atoms/pagination/pagination-next.d.ts +6 -0
- package/dist/src/components/atoms/pagination/pagination-previous.d.ts +6 -0
- package/dist/src/components/atoms/pagination/pagination.atom.d.ts +24 -0
- package/dist/src/components/atoms/pagination/pagination.stories.d.ts +4 -0
- package/dist/src/components/atoms/pagination/pagination.styles.d.ts +4 -0
- package/dist/src/components/atoms/pagination/pagination.type.d.ts +2 -0
- package/dist/src/components/atoms/popover/popover-content.d.ts +14 -0
- package/dist/src/components/atoms/popover/popover-trigger.d.ts +9 -0
- package/dist/src/components/atoms/popover/popover.atom.d.ts +18 -0
- package/dist/src/components/atoms/popover/popover.stories.d.ts +4 -0
- package/dist/src/components/atoms/popover/popover.style.d.ts +10 -0
- package/dist/src/components/atoms/popover/popover.types.d.ts +2 -0
- package/dist/src/components/atoms/radio-group/radio-group-item.d.ts +16 -0
- package/dist/src/components/atoms/radio-group/radio-group.atom.d.ts +16 -0
- package/dist/src/components/atoms/radio-group/radio-group.stories.d.ts +4 -0
- package/dist/src/components/atoms/radio-group/radio-group.types.d.ts +2 -0
- package/dist/src/components/atoms/sample-demo/sample-demo.d.ts +20 -0
- package/dist/src/components/atoms/sample-demo/sample.style.d.ts +4 -0
- package/dist/src/components/atoms/sample-demo/sample.type.d.ts +3 -0
- package/dist/src/components/atoms/select/select-group.d.ts +23 -0
- package/dist/src/components/atoms/select/select-item.d.ts +22 -0
- package/dist/src/components/atoms/select/select-label.d.ts +10 -0
- package/dist/src/components/atoms/select/select-list.d.ts +7 -0
- package/dist/src/components/atoms/select/select-seperator.d.ts +10 -0
- package/dist/src/components/atoms/select/select-trigger.d.ts +15 -0
- package/dist/src/components/atoms/select/select-value.d.ts +18 -0
- package/dist/src/components/atoms/select/select.atom.d.ts +24 -0
- package/dist/src/components/atoms/select/select.stories.d.ts +4 -0
- package/dist/src/components/atoms/seperator/separator.atom.d.ts +14 -0
- package/dist/src/components/atoms/seperator/separator.defs.d.ts +10 -0
- package/dist/src/components/atoms/seperator/separator.stories.d.ts +7 -0
- package/dist/src/components/atoms/switch/switch.atom.d.ts +14 -0
- package/dist/src/components/atoms/switch/switch.stories.d.ts +4 -0
- package/dist/src/components/atoms/switch/switch.type.d.ts +4 -0
- package/dist/src/components/atoms/textarea/textarea.atom.d.ts +22 -0
- package/dist/src/components/atoms/textarea/textarea.stories.d.ts +4 -0
- package/dist/src/components/atoms/textarea/textarea.styles.d.ts +1 -0
- package/dist/src/components/atoms/textarea/textarea.type.d.ts +11 -0
- package/dist/src/components/atoms/toast/toast-action.d.ts +19 -0
- package/dist/src/components/atoms/toast/toast-description.d.ts +10 -0
- package/dist/src/components/atoms/toast/toast-title.d.ts +10 -0
- package/dist/src/components/atoms/toast/toast-view-port.d.ts +17 -0
- package/dist/src/components/atoms/toast/toast.atom.d.ts +16 -0
- package/dist/src/components/atoms/toast/toast.stories.d.ts +5 -0
- package/dist/src/components/atoms/toast/toast.style.d.ts +9 -0
- package/dist/src/components/atoms/toast/toast.type.d.ts +1 -0
- package/dist/src/components/atoms/toggle/toggle.atom.d.ts +20 -0
- package/dist/src/components/atoms/toggle/toggle.defs.d.ts +27 -0
- package/dist/src/components/atoms/toggle/toggle.stories.d.ts +5 -0
- package/dist/src/components/atoms/toggle/toggle.style.d.ts +4 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/molecules/breadcrumb/breadcrumb-ellipsis.d.ts +6 -0
- package/dist/src/components/molecules/breadcrumb/breadcrumb-item.d.ts +6 -0
- package/dist/src/components/molecules/breadcrumb/breadcrumb-link.d.ts +7 -0
- package/dist/src/components/molecules/breadcrumb/breadcrumb-list.d.ts +6 -0
- package/dist/src/components/molecules/breadcrumb/breadcrumb-separator.d.ts +6 -0
- package/dist/src/components/molecules/breadcrumb/breadcrumb-text.d.ts +6 -0
- package/dist/src/components/molecules/breadcrumb/breadcrumb.molecules.d.ts +6 -0
- package/dist/src/components/molecules/breadcrumb/breadcrumb.stories.d.ts +5 -0
- package/dist/src/components/molecules/breadcrumb/breadcrumb.styles.d.ts +6 -0
- package/dist/src/components/molecules/index.d.ts +11 -0
- package/dist/src/components/molecules/input-otp/input-otp-group.d.ts +14 -0
- package/dist/src/components/molecules/input-otp/input-otp-separator.d.ts +11 -0
- package/dist/src/components/molecules/input-otp/input-otp-slot.d.ts +25 -0
- package/dist/src/components/molecules/input-otp/input-otp.molecule.d.ts +23 -0
- package/dist/src/components/molecules/input-otp/input-otp.stories.d.ts +4 -0
- package/dist/src/components/molecules/tabs/tab-contents.d.ts +12 -0
- package/dist/src/components/molecules/tabs/tab-list.d.ts +14 -0
- package/dist/src/components/molecules/tabs/tab-trigger.d.ts +17 -0
- package/dist/src/components/molecules/tabs/tab.molecules.d.ts +15 -0
- package/dist/src/components/molecules/tabs/tab.stories.d.ts +14 -0
- package/dist/src/components/molecules/toggle-group/toggle-group-item.d.ts +17 -0
- package/dist/src/components/molecules/toggle-group/toggle-group.defs.d.ts +37 -0
- package/dist/src/components/molecules/toggle-group/toggle-group.molecules.d.ts +19 -0
- package/dist/src/components/molecules/toggle-group/toggle-group.stories.d.ts +4 -0
- package/dist/src/components/molecules/toggle-group/toggle-group.style.d.ts +4 -0
- package/dist/src/helpers/base-element.d.ts +10 -0
- package/dist/src/helpers/genrate-uuid.helper.d.ts +1 -0
- package/dist/src/helpers/index.d.ts +4 -0
- package/dist/src/helpers/mouse-conroller.helper.d.ts +14 -0
- package/dist/src/helpers/style.helpers.d.ts +2 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/interfaces/actionable.interface.d.ts +5 -0
- package/dist/src/interfaces/atomic.interface.d.ts +6 -0
- package/dist/src/interfaces/changeable.interface.d.ts +7 -0
- package/dist/src/interfaces/child-support-atomic.interface.d.ts +4 -0
- package/dist/src/interfaces/index.d.ts +6 -0
- package/dist/src/interfaces/intractable.interface.d.ts +6 -0
- package/dist/src/interfaces/variant.interface.d.ts +3 -0
- package/dist/src/lib/index.d.ts +0 -0
- package/dist/src/lib/next/next.lib.d.ts +0 -0
- package/dist/src/lib/react/react.lib.d.ts +4 -0
- package/dist/src/lib/tw-styles.d.ts +1 -0
- package/dist/src/styles/index.d.ts +1 -0
- package/dist/src/styles/tw.styles.d.ts +1 -0
- package/dist/src/wc-ui-app.d.ts +6 -0
- package/package.json +135 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit-element';
|
|
2
|
+
import { Tab } from './tab.molecules';
|
|
3
|
+
import { TabList } from './tab-list';
|
|
4
|
+
import { BaseElement } from '../../../helpers';
|
|
5
|
+
declare class TabsTrigger extends BaseElement {
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
value: string;
|
|
8
|
+
onClickCallback?: (tabValue: string) => void;
|
|
9
|
+
static styles: import("lit-element").CSSResult[];
|
|
10
|
+
get _tab(): Tab | null;
|
|
11
|
+
get _tabList(): TabList | null;
|
|
12
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
13
|
+
handleClick: (event: Event) => void;
|
|
14
|
+
protected getAttributesToExclude(): string[];
|
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
export { TabsTrigger };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit-element';
|
|
2
|
+
import { BaseElement } from '../../../helpers';
|
|
3
|
+
declare class Tab extends BaseElement {
|
|
4
|
+
defaultValue: string;
|
|
5
|
+
tabindex: number;
|
|
6
|
+
twCLass: string;
|
|
7
|
+
static styles: import("lit-element").CSSResult[];
|
|
8
|
+
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
11
|
+
protected getAttributesToExclude(): string[];
|
|
12
|
+
raiseEvent(): void;
|
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
export { Tab };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/web-components';
|
|
2
|
+
export declare enum TAB_LIST {
|
|
3
|
+
/**
|
|
4
|
+
* @Default variant
|
|
5
|
+
*/
|
|
6
|
+
ACCOUNT = "account",
|
|
7
|
+
/**
|
|
8
|
+
* @Outline variant
|
|
9
|
+
*/
|
|
10
|
+
PASSWORD = "password"
|
|
11
|
+
}
|
|
12
|
+
declare const _default: Meta;
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const Tab: StoryFn;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LitElement } from 'lit-element';
|
|
2
|
+
import { TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE } from './toggle-group.defs';
|
|
3
|
+
declare class ToggleGroupItem extends LitElement {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
id: string;
|
|
6
|
+
variant: TOGGLE_GROUP_VARIANT;
|
|
7
|
+
size: TOGGLE_GROUP_SIZE;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
static styles: import("lit-element").CSSResult[];
|
|
10
|
+
static toggleGroupVariants: (props?: ({
|
|
11
|
+
variant?: "default" | "outline" | null | undefined;
|
|
12
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
13
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
14
|
+
protected getAttributesToExclude(): string[];
|
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
export { ToggleGroupItem };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toggle Group Type.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum TOGGLE_GROUP_TYPE {
|
|
5
|
+
/**
|
|
6
|
+
* @multiple Type
|
|
7
|
+
*/
|
|
8
|
+
MULTIPLE = "multiple",
|
|
9
|
+
/**
|
|
10
|
+
* @medium size
|
|
11
|
+
*/
|
|
12
|
+
SINGLE = "single"
|
|
13
|
+
}
|
|
14
|
+
export declare enum TOGGLE_GROUP_VARIANT {
|
|
15
|
+
/**
|
|
16
|
+
* @Default variant
|
|
17
|
+
*/
|
|
18
|
+
DEFAULT = "default",
|
|
19
|
+
/**
|
|
20
|
+
* @Outline variant
|
|
21
|
+
*/
|
|
22
|
+
OUTLINE = "outline"
|
|
23
|
+
}
|
|
24
|
+
export declare enum TOGGLE_GROUP_SIZE {
|
|
25
|
+
/**
|
|
26
|
+
* @Small size
|
|
27
|
+
*/
|
|
28
|
+
SMALL = "sm",
|
|
29
|
+
/**
|
|
30
|
+
* @medium size
|
|
31
|
+
*/
|
|
32
|
+
MEDIUM = "md",
|
|
33
|
+
/**
|
|
34
|
+
* @Large size
|
|
35
|
+
*/
|
|
36
|
+
LARGE = "lg"
|
|
37
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
2
|
+
import { TOGGLE_GROUP_TYPE, TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE } from './toggle-group.defs';
|
|
3
|
+
declare class ToggleGroup extends BaseElement {
|
|
4
|
+
twClass: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
type: TOGGLE_GROUP_TYPE;
|
|
7
|
+
required: boolean;
|
|
8
|
+
variant: TOGGLE_GROUP_VARIANT;
|
|
9
|
+
size: TOGGLE_GROUP_SIZE;
|
|
10
|
+
static styles: import("lit-element").CSSResult[];
|
|
11
|
+
protected getAttributesToExclude(): string[];
|
|
12
|
+
private selectedItems;
|
|
13
|
+
private childrenArray;
|
|
14
|
+
toggleSelection(itemId: string): void;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
firstUpdated(changedProperties: Map<string, unknown>): void;
|
|
17
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
18
|
+
}
|
|
19
|
+
export { ToggleGroup, TOGGLE_GROUP_TYPE, TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare abstract class BaseElement extends LitElement {
|
|
3
|
+
constructor();
|
|
4
|
+
protected abstract getAttributesToExclude(): string[];
|
|
5
|
+
protected getFilteredAttributes(): {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
protected isCustomPropertySet(property: string): boolean;
|
|
9
|
+
protected applyCustomClass(variables: string[], selector: string, className?: string): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function generateUUID(): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactiveControllerHost } from 'lit';
|
|
2
|
+
export declare class MouseController {
|
|
3
|
+
private host;
|
|
4
|
+
pos: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
_onMouseMove: ({ clientX, clientY }: MouseEvent) => void;
|
|
9
|
+
_onClick: (e: MouseEvent) => void;
|
|
10
|
+
_onScroll: (e: Event) => void;
|
|
11
|
+
constructor(host: ReactiveControllerHost);
|
|
12
|
+
hostConnected(): void;
|
|
13
|
+
hostDisconnected(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Alert, AlertDescription, AlertTitle, Button, Badge, Input, Card, CardTitle, CardHeader, CardFooter, CardDescription, CardContent, Checkbox, ComboBox, Dialog, DialogContent, DialogClose, DialogFooter, DialogHeader, DialogOverlay, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuGroup, Popover, PopoverContent, PopoverTrigger, Toggle, ContextMenu, ContextMenuCheckboxItem, ContextMenuGroup, ContextMenuContent, ContextMenuItem, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, Select, SelectItem, SelectList, SelectLabel, SelectSeperator, Switch, RadioGroup, RadioGroupItem, Separator, AspectRatio, Menubar, MenubarContent, MenubarGroup, MenubarMenu, MenubarItem, MenubarRadioItem, MenubarCheckboxItem, MenubarSeparator, MenubarShortcut, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuLink, Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationEllipsis, PaginationNext, PaginationPrevious, Carousel, Calendar, DatePicker } from './components';
|
|
2
|
+
export { Alert, AlertDescription, AlertTitle, Button, Badge, Input, Card, CardTitle, CardHeader, CardFooter, CardDescription, CardContent, Checkbox, ComboBox, Dialog, DialogContent, DialogClose, DialogFooter, DialogHeader, DialogOverlay, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuGroup, Popover, PopoverContent, PopoverTrigger, Toggle, ContextMenu, ContextMenuCheckboxItem, ContextMenuGroup, ContextMenuContent, ContextMenuItem, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, Select, SelectItem, SelectList, SelectLabel, SelectSeperator, Switch, RadioGroup, RadioGroupItem, Separator, AspectRatio, Menubar, MenubarContent, MenubarGroup, MenubarMenu, MenubarItem, MenubarRadioItem, MenubarCheckboxItem, MenubarSeparator, MenubarShortcut, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuLink, Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationEllipsis, PaginationNext, PaginationPrevious, Carousel, Calendar, DatePicker, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IntractableProps } from './intractable.interface';
|
|
3
|
+
export type ChangeableProps<T = React.ChangeEvent<HTMLInputElement> | string | number, K = unknown> = Partial<IntractableProps & {
|
|
4
|
+
onChange: (event?: T, value?: K) => void;
|
|
5
|
+
onBlur: (event?: T) => void;
|
|
6
|
+
onPaste: (event?: T) => void;
|
|
7
|
+
}>;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TWStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tw.styles';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TWStyles: import("lit").CSSResult;
|
package/package.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@revotech-group/revotech-ui-kit",
|
|
3
|
+
"description": "Webcomponent wc-ui following open-wc recommendations",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "wc-ui",
|
|
6
|
+
"version": "0.0.50",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/revotech-ui-kit.umd.cjs",
|
|
9
|
+
"module": "./dist/revotech-ui-kit.js",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"types": "./dist/src/index.d.ts",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"release": "npm version $(semver $npm_package_version -i major) && npm publish --tag latest",
|
|
16
|
+
"release:minor": "npm version $(semver $npm_package_version -i minor) && npm publish --tag latest",
|
|
17
|
+
"release:patch": "npm version $(semver $npm_package_version -i patch) && npm publish --tag latest",
|
|
18
|
+
"release:beta": "npm version $(semver $npm_package_version -i prerelease --preid $(npm whoami) ) && npm publish --tag beta",
|
|
19
|
+
"clean": "rimraf dist",
|
|
20
|
+
"copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.js dist/public/",
|
|
21
|
+
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
22
|
+
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
23
|
+
"test": "tsc && wtr --coverage",
|
|
24
|
+
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
|
|
25
|
+
"storybook": "storybook dev -p 6006",
|
|
26
|
+
"test-storybook": "test-storybook",
|
|
27
|
+
"storybook:build": "storybook build",
|
|
28
|
+
"build-storybook": "storybook build",
|
|
29
|
+
"link:dev": "npm run build:prod && npm link",
|
|
30
|
+
"dev": "vite",
|
|
31
|
+
"build": "npm run clean & vite build",
|
|
32
|
+
"preview": "vite preview",
|
|
33
|
+
"analyze": "cem analyze --litelement",
|
|
34
|
+
"tw:watch": "concurrently \"tailwindcss -i ./src/tailwind-lib.css -o ./src/globals.css --watch\" \"twlit --input ./src/globals.css --output ./src/styles/tw.styles.ts \""
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@lit-labs/react": "^1.2.0",
|
|
38
|
+
"@open-wc/lit-helpers": "^0.7.0",
|
|
39
|
+
"@storybook/addon-essentials": "^8.0.0",
|
|
40
|
+
"@storybook/addon-links": "^8.0.0",
|
|
41
|
+
"@storybook/web-components": "^8.0.0",
|
|
42
|
+
"@storybook/web-components-vite": "^8.0.0",
|
|
43
|
+
"class-variance-authority": "^0.7.0",
|
|
44
|
+
"clsx": "^2.1.0",
|
|
45
|
+
"husky": "^9.1.4",
|
|
46
|
+
"lit": "^3.1.2",
|
|
47
|
+
"playwright": "^1.47.1",
|
|
48
|
+
"react": "^18.3.1",
|
|
49
|
+
"storybook": "^8.3.4",
|
|
50
|
+
"tailwind-merge": "^2.2.1",
|
|
51
|
+
"tailwindcss-animate": "^1.0.7",
|
|
52
|
+
"vite": "^4.3.2",
|
|
53
|
+
"vite-plugin-dts": "^3.6.0",
|
|
54
|
+
"vite-plugin-html-config": "^1.0.11"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@babel/preset-env": "^7.16.4",
|
|
58
|
+
"@chromatic-com/storybook": "^1.9.0",
|
|
59
|
+
"@custom-elements-manifest/analyzer": "^0.4.17",
|
|
60
|
+
"@open-wc/eslint-config": "^9.2.1",
|
|
61
|
+
"@open-wc/testing": "^3.1.6",
|
|
62
|
+
"@storybook/addon-interactions": "^8.2.9",
|
|
63
|
+
"@storybook/blocks": "^8.2.9",
|
|
64
|
+
"@storybook/builder-vite": "^8.0.0",
|
|
65
|
+
"@storybook/jest": "^0.2.3",
|
|
66
|
+
"@storybook/test": "^8.2.9",
|
|
67
|
+
"@storybook/test-runner": "^0.19.1",
|
|
68
|
+
"@storybook/testing-library": "^0.2.2",
|
|
69
|
+
"@testing-library/dom": "^10.4.0",
|
|
70
|
+
"@testing-library/jest-dom": "^6.4.8",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
|
72
|
+
"@typescript-eslint/parser": "^5.48.0",
|
|
73
|
+
"@web/dev-server": "^0.1.34",
|
|
74
|
+
"@web/dev-server-storybook": "^0.5.4",
|
|
75
|
+
"@web/test-runner": "^0.14.0",
|
|
76
|
+
"babel-plugin-template-html-minifier": "^4.1.0",
|
|
77
|
+
"concurrently": "^5.3.0",
|
|
78
|
+
"copyfiles": "^2.4.1",
|
|
79
|
+
"deepmerge": "^4.2.2",
|
|
80
|
+
"eslint": "^8.31.0",
|
|
81
|
+
"eslint-config-prettier": "^8.3.0",
|
|
82
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
83
|
+
"lint-staged": "^10.5.4",
|
|
84
|
+
"prettier": "^2.4.1",
|
|
85
|
+
"rimraf": "^3.0.2",
|
|
86
|
+
"tailwindcss": "^3.4.1",
|
|
87
|
+
"tslib": "^2.3.1",
|
|
88
|
+
"twlit": "^0.0.1-alpha.37",
|
|
89
|
+
"typescript": "^5.3.3"
|
|
90
|
+
},
|
|
91
|
+
"eslintConfig": {
|
|
92
|
+
"parser": "@typescript-eslint/parser",
|
|
93
|
+
"extends": [
|
|
94
|
+
"@open-wc",
|
|
95
|
+
"prettier",
|
|
96
|
+
"plugin:storybook/recommended"
|
|
97
|
+
],
|
|
98
|
+
"plugins": [
|
|
99
|
+
"@typescript-eslint"
|
|
100
|
+
],
|
|
101
|
+
"rules": {
|
|
102
|
+
"no-unused-vars": "off",
|
|
103
|
+
"@typescript-eslint/no-unused-vars": [
|
|
104
|
+
"error"
|
|
105
|
+
],
|
|
106
|
+
"import/no-unresolved": "off",
|
|
107
|
+
"import/extensions": [
|
|
108
|
+
"error",
|
|
109
|
+
"always",
|
|
110
|
+
{
|
|
111
|
+
"ignorePackages": true
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"max-classes-per-file": [
|
|
115
|
+
"error",
|
|
116
|
+
{
|
|
117
|
+
"ignoreExpressions": true,
|
|
118
|
+
"max": 10
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"no-plusplus": "off"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"prettier": {
|
|
125
|
+
"singleQuote": true,
|
|
126
|
+
"arrowParens": "avoid"
|
|
127
|
+
},
|
|
128
|
+
"lint-staged": {
|
|
129
|
+
"*.ts": [
|
|
130
|
+
"eslint --fix",
|
|
131
|
+
"prettier --write"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"customElements": "custom-elements.json"
|
|
135
|
+
}
|