revotech-ui-kit 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/revotech-ui-kit.js +2766 -1145
- package/dist/revotech-ui-kit.umd.cjs +745 -144
- package/dist/src/assets/icons/arrow-up-circle.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/help-circle.icon.d.ts +1 -0
- package/dist/src/assets/icons/index.d.ts +8 -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/components/atoms/accordion/accordion-content.d.ts +12 -0
- package/dist/src/components/atoms/accordion/accordion-item.d.ts +22 -0
- package/dist/src/components/atoms/accordion/accordion-trigger.d.ts +17 -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/{components/atoms/button/button.stories.d.ts → src/components/atoms/accordion/accordion.stories.d.ts} +1 -1
- package/dist/src/components/atoms/button/button.atom.d.ts +2 -0
- package/dist/src/components/atoms/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/{components/atoms/combo-box → src/components/atoms/combobox}/combo-box-input.d.ts +5 -0
- package/dist/src/components/atoms/{combo-box → combobox}/combo-box-item.d.ts +5 -0
- package/dist/{components/atoms/combo-box → src/components/atoms/combobox}/combo-box-list.d.ts +5 -0
- package/dist/src/components/atoms/{combo-box → combobox}/combo-box.atom.d.ts +3 -0
- package/dist/src/components/atoms/command/command-item.atom.d.ts +4 -3
- package/dist/src/components/atoms/command/command.stories.d.ts +3 -2
- package/dist/src/components/atoms/{dropdownMenu/dropdown-menu-checkbox-Item.d.ts → context-menu/context-menu-checkbox-Item.d.ts} +1 -1
- package/dist/src/components/atoms/{dropdownMenu/dropdown-menu-content.d.ts → context-menu/context-menu-content.d.ts} +3 -3
- package/dist/{components/atoms/command/command-group.atom.d.ts → src/components/atoms/context-menu/context-menu-group.d.ts} +1 -1
- package/dist/{components/atoms/command/command-item.atom.d.ts → src/components/atoms/context-menu/context-menu-item.d.ts} +1 -1
- package/dist/src/components/atoms/{dropdownMenu/dropdown-menu-radio-item.d.ts → context-menu/context-menu-radio-item.d.ts} +1 -1
- package/dist/{components/atoms/command/command-separator.atom.d.ts → src/components/atoms/context-menu/context-menu-seperator.d.ts} +1 -1
- package/dist/{components/atoms/card/card-header.d.ts → src/components/atoms/context-menu/context-menu-shortcut.d.ts} +1 -1
- package/dist/src/components/atoms/context-menu/context-menu.atom.d.ts +34 -0
- package/dist/src/components/atoms/context-menu/contextMenu.stories.d.ts +5 -0
- package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu.atom.d.ts +1 -0
- package/dist/src/components/atoms/dropdown-menu/dropdownMenu.style.d.ts +2 -0
- package/dist/src/components/atoms/index.d.ts +9 -2
- package/dist/src/components/atoms/input/input.styles.d.ts +1 -1
- package/dist/src/components/atoms/popover/popover-content.d.ts +2 -1
- package/dist/src/components/atoms/popover/popover-trigger.d.ts +2 -2
- package/dist/src/components/atoms/popover/popover.style.d.ts +4 -0
- package/dist/{components/atoms/checkbox/checkbox.atom.d.ts → src/components/atoms/radio-group/radio-group-item.d.ts} +5 -7
- 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 +5 -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 +21 -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/{components/atoms/combo-box/combo-box-item.d.ts → src/components/atoms/select/select-item.d.ts} +1 -1
- package/dist/{components/atoms/card/card-footer.d.ts → src/components/atoms/select/select-label.d.ts} +1 -1
- package/dist/{components/atoms/card/card-content.d.ts → src/components/atoms/select/select-list.d.ts} +3 -1
- package/dist/{components/atoms/command/command-empty.atom.d.ts → src/components/atoms/select/select-seperator.d.ts} +1 -1
- package/dist/{components/atoms/combo-box/combo-box.atom.d.ts → src/components/atoms/select/select.atom.d.ts} +12 -6
- package/dist/src/components/atoms/select/select.stories.d.ts +6 -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/{components/atoms/dialog/dialog.stories.d.ts → src/components/atoms/seperator/separator.stories.d.ts} +3 -2
- package/dist/src/components/atoms/switch/switch.atom.d.ts +14 -0
- package/dist/src/components/atoms/switch/switch.stories.d.ts +5 -0
- package/dist/src/components/atoms/switch/switch.type.d.ts +4 -0
- package/dist/src/components/atoms/toggle/toggle.atom.d.ts +1 -1
- package/dist/{components/atoms/toggle/defs.d.ts → src/components/atoms/toggle/toggle.defs.d.ts} +5 -5
- package/dist/src/components/molecules/breadcrumb/breadcrumb.stories.d.ts +6 -0
- package/dist/src/components/molecules/index.d.ts +7 -7
- package/dist/src/components/molecules/tabs/tab-contents.d.ts +13 -0
- package/dist/src/components/molecules/tabs/tab-list.d.ts +15 -0
- package/dist/src/components/molecules/tabs/tab-trigger.d.ts +18 -0
- package/dist/src/components/molecules/tabs/tab.molecules.d.ts +15 -0
- package/dist/src/components/molecules/tabs/tab.stories.d.ts +15 -0
- package/dist/src/components/molecules/toggle-group/toggle-group-item.d.ts +1 -1
- package/dist/src/components/molecules/toggle-group/{defs.d.ts → toggle-group.defs.d.ts} +7 -7
- package/dist/src/components/molecules/toggle-group/toggle-group.molecules.d.ts +1 -1
- package/dist/src/index.d.ts +2 -2
- package/package.json +7 -11
- package/dist/assets/icons/arrows.icon.d.ts +0 -1
- package/dist/assets/icons/index.d.ts +0 -3
- package/dist/assets/icons/search.icon.d.ts +0 -1
- package/dist/assets/icons/tick.icon.d.ts +0 -1
- package/dist/components/atoms/alert/alert-description.d.ts +0 -6
- package/dist/components/atoms/alert/alert-title.d.ts +0 -6
- package/dist/components/atoms/alert/alert.atom.d.ts +0 -23
- package/dist/components/atoms/alert/alert.stories.d.ts +0 -6
- package/dist/components/atoms/alert/alert.styles.d.ts +0 -4
- package/dist/components/atoms/alert/alert.types.d.ts +0 -1
- package/dist/components/atoms/badge/badge.atom.d.ts +0 -17
- package/dist/components/atoms/badge/badge.stories.d.ts +0 -6
- package/dist/components/atoms/badge/badge.style.d.ts +0 -3
- package/dist/components/atoms/badge/badge.type.d.ts +0 -1
- package/dist/components/atoms/button/button.atom.d.ts +0 -23
- package/dist/components/atoms/button/button.style.d.ts +0 -4
- package/dist/components/atoms/button/button.type.d.ts +0 -3
- package/dist/components/atoms/card/card-description.d.ts +0 -6
- package/dist/components/atoms/card/card-title.d.ts +0 -6
- package/dist/components/atoms/card/card.atom.d.ts +0 -22
- package/dist/components/atoms/card/card.stories.d.ts +0 -6
- package/dist/components/atoms/checkbox/checkbox.stories.d.ts +0 -7
- package/dist/components/atoms/checkbox/checkbox.style.d.ts +0 -2
- package/dist/components/atoms/checkbox/checkbox.type.d.ts +0 -21
- package/dist/components/atoms/combo-box/combo-box.stories.d.ts +0 -6
- package/dist/components/atoms/command/command-input.atom.d.ts +0 -11
- package/dist/components/atoms/command/command-list.atom.d.ts +0 -7
- package/dist/components/atoms/command/command.atom.d.ts +0 -7
- package/dist/components/atoms/command/command.stories.d.ts +0 -5
- package/dist/components/atoms/dialog/dialog-close.d.ts +0 -13
- package/dist/components/atoms/dialog/dialog-content.d.ts +0 -9
- package/dist/components/atoms/dialog/dialog-footer.d.ts +0 -6
- package/dist/components/atoms/dialog/dialog-header.d.ts +0 -8
- package/dist/components/atoms/dialog/dialog-overly.d.ts +0 -6
- package/dist/components/atoms/dialog/dialog-trigger.d.ts +0 -9
- package/dist/components/atoms/dialog/dialog.atom.d.ts +0 -25
- package/dist/components/atoms/dropdownMenu/dropdownMenu.stories.d.ts +0 -7
- package/dist/components/atoms/dropdownMenu/dropdownMenu.style.d.ts +0 -2
- package/dist/components/atoms/index.d.ts +0 -19
- package/dist/components/atoms/input/input.atom.d.ts +0 -22
- package/dist/components/atoms/input/input.stories.d.ts +0 -6
- package/dist/components/atoms/input/input.styles.d.ts +0 -1
- package/dist/components/atoms/input/input.type.d.ts +0 -21
- package/dist/components/atoms/label/label.atom.d.ts +0 -17
- package/dist/components/atoms/label/label.stories.d.ts +0 -6
- package/dist/components/atoms/label/label.style.d.ts +0 -1
- package/dist/components/atoms/popover/popover-content.d.ts +0 -12
- package/dist/components/atoms/popover/popover-trigger.d.ts +0 -10
- package/dist/components/atoms/popover/popover.atom.d.ts +0 -19
- package/dist/components/atoms/popover/popover.stories.d.ts +0 -5
- package/dist/components/atoms/popover/popover.style.d.ts +0 -5
- package/dist/components/atoms/popover/popover.types.d.ts +0 -2
- package/dist/components/atoms/textarea/textarea.atom.d.ts +0 -17
- package/dist/components/atoms/textarea/textarea.stories.d.ts +0 -5
- package/dist/components/atoms/textarea/textarea.styles.d.ts +0 -1
- package/dist/components/atoms/textarea/textarea.type.d.ts +0 -11
- package/dist/components/atoms/toggle/toggle.atom.d.ts +0 -20
- package/dist/components/atoms/toggle/toggle.stories.d.ts +0 -6
- package/dist/components/atoms/toggle/toggle.style.d.ts +0 -4
- package/dist/components/index.d.ts +0 -2
- package/dist/components/molecules/breadCrumb/breadCrumb.stories.d.ts +0 -5
- package/dist/components/molecules/index.d.ts +0 -7
- package/dist/components/molecules/toggle-group/defs.d.ts +0 -37
- package/dist/components/molecules/toggle-group/toggle-group-item.d.ts +0 -18
- package/dist/components/molecules/toggle-group/toggle-group.molecules.d.ts +0 -19
- package/dist/components/molecules/toggle-group/toggle-group.stories.d.ts +0 -5
- package/dist/components/molecules/toggle-group/toggle-group.style.d.ts +0 -4
- package/dist/helpers/base-element.d.ts +0 -11
- package/dist/helpers/index.d.ts +0 -3
- package/dist/helpers/mouse-conroller.helper.d.ts +0 -15
- package/dist/helpers/style.helpers.d.ts +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/interfaces/actionable.interface.d.ts +0 -6
- package/dist/interfaces/atomic.interface.d.ts +0 -6
- package/dist/interfaces/changeable.interface.d.ts +0 -8
- package/dist/interfaces/child-support-atomic.interface.d.ts +0 -5
- package/dist/interfaces/index.d.ts +0 -6
- package/dist/interfaces/intractable.interface.d.ts +0 -6
- package/dist/interfaces/variant.interface.d.ts +0 -3
- package/dist/lib/index.d.ts +0 -0
- package/dist/lib/next/next.lib.d.ts +0 -0
- package/dist/lib/react/react.lib.d.ts +0 -3
- package/dist/lib/tw-styles.d.ts +0 -1
- package/dist/src/components/atoms/combo-box/combo-box-input.d.ts +0 -9
- package/dist/src/components/atoms/combo-box/combo-box-list.d.ts +0 -10
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.d.ts +0 -11
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.d.ts +0 -13
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.d.ts +0 -10
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.d.ts +0 -6
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.d.ts +0 -31
- package/dist/src/components/atoms/toggle/defs.d.ts +0 -27
- package/dist/src/components/molecules/breadCrumb/Breadcrumb-link.d.ts +0 -8
- package/dist/src/components/molecules/breadCrumb/breadCrumb.stories.d.ts +0 -5
- package/dist/src/components/molecules/breadCrumb/breadcrumb-ellipsis.d.ts +0 -7
- package/dist/src/components/molecules/breadCrumb/breadcrumb-item.d.ts +0 -7
- package/dist/src/components/molecules/breadCrumb/breadcrumb-list.d.ts +0 -7
- package/dist/src/components/molecules/breadCrumb/breadcrumb-separator.d.ts +0 -7
- package/dist/src/components/molecules/breadCrumb/breadcrumb-text.d.ts +0 -7
- package/dist/src/components/molecules/breadCrumb/breadcrumb.molecules.d.ts +0 -7
- package/dist/src/components/molecules/breadCrumb/breadcrumb.styles.d.ts +0 -6
- package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.d.ts +0 -0
- package/dist/styles/index.d.ts +0 -1
- package/dist/styles/tw.styles.d.ts +0 -1
- package/dist/wc-ui-app.d.ts +0 -7
- /package/dist/{components/molecules/dropdownMenu/dropdownMenu.molecules.d.ts → src/components/atoms/accordion/accordion.styles.d.ts} +0 -0
- /package/dist/src/components/atoms/{combo-box → combobox}/combo-box.stories.d.ts +0 -0
- /package/dist/src/components/atoms/{dropdownMenu/dropdownMenu.style.d.ts → context-menu/contextMenu.style.d.ts} +0 -0
- /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-checkbox-Item.d.ts +0 -0
- /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-content.d.ts +0 -0
- /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-group.d.ts +0 -0
- /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-item.d.ts +0 -0
- /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-radio-item.d.ts +0 -0
- /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-seperator.d.ts +0 -0
- /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-shortcut.d.ts +0 -0
- /package/dist/src/components/atoms/{dropdownMenu → dropdown-menu}/dropdownMenu.stories.d.ts +0 -0
- /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-ellipsis.d.ts +0 -0
- /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-item.d.ts +0 -0
- /package/dist/{components/molecules/breadCrumb/Breadcrumb-link.d.ts → src/components/molecules/breadcrumb/breadcrumb-link.d.ts} +0 -0
- /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-list.d.ts +0 -0
- /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-separator.d.ts +0 -0
- /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-text.d.ts +0 -0
- /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb.molecules.d.ts +0 -0
- /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb.styles.d.ts +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
export declare function arrowUpCircleIcon(): import('lit-html').TemplateResult<2>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function chorvenDownIcon(): import('lit-html').TemplateResult<2>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function circleCheckIcon(): import('lit-html').TemplateResult<2>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function circleXIcon(): import('lit-html').TemplateResult<2>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function circleIcon(): import('lit-html').TemplateResult<2>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function helpCircleIcon(): import('lit-html').TemplateResult<2>;
|
@@ -1,3 +1,11 @@
|
|
1
1
|
export * from './arrows.icon';
|
2
2
|
export * from './tick.icon';
|
3
3
|
export * from './search.icon';
|
4
|
+
export * from './help-circle.icon';
|
5
|
+
export * from './circle.icon';
|
6
|
+
export * from './arrow-up-circle.icon';
|
7
|
+
export * from './circle-check.icon';
|
8
|
+
export * from './circle-x.icon';
|
9
|
+
export * from './radio.icon';
|
10
|
+
export * from './chorven-down.icon';
|
11
|
+
export * from './radio-group.icon';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function radioGroupIcon(): import('lit-html').TemplateResult<2>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function radioIcon(): import('lit-html').TemplateResult<2>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit-element';
|
2
|
+
import { Accordion } from './accordion.atoms';
|
3
|
+
|
4
|
+
declare class AccordionContent extends LitElement {
|
5
|
+
value: string;
|
6
|
+
selectedValue: string;
|
7
|
+
static styles: import('lit-element').CSSResult[];
|
8
|
+
get _accordion(): Accordion | null;
|
9
|
+
protected updated(_changedProperties: PropertyValues): void;
|
10
|
+
render(): import('lit-html').TemplateResult<1>;
|
11
|
+
}
|
12
|
+
export { AccordionContent };
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { PropertyValues } from 'lit-element';
|
2
|
+
import { BaseElement } from '../../../helpers';
|
3
|
+
import { Accordion } from './accordion.atoms';
|
4
|
+
|
5
|
+
declare class AccordionItem extends BaseElement {
|
6
|
+
value: string;
|
7
|
+
tabindex: number;
|
8
|
+
static styles: import('lit-element').CSSResult[];
|
9
|
+
protected getAttributesToExclude(): string[];
|
10
|
+
connectedCallback(): void;
|
11
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
12
|
+
disconnectedCallback(): void;
|
13
|
+
get _accordion(): Accordion | null;
|
14
|
+
handleClick: (event: MouseEvent) => void;
|
15
|
+
render(): import('lit-html').TemplateResult<1>;
|
16
|
+
}
|
17
|
+
export { AccordionItem };
|
18
|
+
declare global {
|
19
|
+
interface HTMLElementTagNameMap {
|
20
|
+
'rtg-accordion-item': AccordionItem;
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
2
|
+
|
3
|
+
declare class AccordionTrigger extends BaseElement {
|
4
|
+
defaultValue: string;
|
5
|
+
value: string;
|
6
|
+
onClickCallback?: (tabValue: string) => void;
|
7
|
+
static styles: import('lit-element').CSSResult[];
|
8
|
+
connectedCallback(): void;
|
9
|
+
protected getAttributesToExclude(): string[];
|
10
|
+
render(): import('lit-html').TemplateResult<1>;
|
11
|
+
}
|
12
|
+
export { AccordionTrigger };
|
13
|
+
declare global {
|
14
|
+
interface HTMLElementTagNameMap {
|
15
|
+
'rtg-accordion-trigger': AccordionTrigger;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
2
|
+
import { AccordionItem } from './accordion-item';
|
3
|
+
import { AccordionTrigger } from './accordion-trigger';
|
4
|
+
import { AccordionContent } from './accordion-content';
|
5
|
+
import { ACCORDION_GROUP_TYPE } from './accordion.defs';
|
6
|
+
|
7
|
+
declare class Accordion extends BaseElement {
|
8
|
+
static styles: import('lit').CSSResult[];
|
9
|
+
type: ACCORDION_GROUP_TYPE;
|
10
|
+
selectedItems: string[];
|
11
|
+
protected getAttributesToExclude(): string[];
|
12
|
+
connectedCallback(): void;
|
13
|
+
disconnectedCallback(): void;
|
14
|
+
setSelectedItems(item: string): void;
|
15
|
+
raiseEvent(value: string): void;
|
16
|
+
render(): import('lit-html').TemplateResult<1>;
|
17
|
+
}
|
18
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
19
|
+
declare global {
|
20
|
+
interface HTMLElementTagNameMap {
|
21
|
+
'rtg-accordion': Accordion;
|
22
|
+
}
|
23
|
+
}
|
@@ -11,6 +11,8 @@ export declare class Button extends BaseElement {
|
|
11
11
|
type: buttonType.ButtonType;
|
12
12
|
variant: buttonType.ButtonVariant;
|
13
13
|
size: buttonType.ButtonSize;
|
14
|
+
externalClass: string;
|
15
|
+
isCustomClass: boolean;
|
14
16
|
static styles: import('lit').CSSResult[];
|
15
17
|
private handleClick;
|
16
18
|
protected getAttributesToExclude(): string[];
|
@@ -2,6 +2,6 @@ import { Meta, StoryFn } from '@storybook/web-components';
|
|
2
2
|
|
3
3
|
declare const _default: Meta;
|
4
4
|
export default _default;
|
5
|
-
export declare const
|
5
|
+
export declare const CheckboxWithRequired: StoryFn;
|
6
6
|
export declare const Checkbox: StoryFn;
|
7
7
|
export declare const CheckboxWithValue: StoryFn;
|
@@ -16,6 +16,9 @@ declare class ComboBox extends LitElement {
|
|
16
16
|
handleSearch(event: Event): void;
|
17
17
|
handleKeyDown(event: KeyboardEvent): void;
|
18
18
|
handleMouseOver(event: Event, index: number): void;
|
19
|
+
connectedCallback(): void;
|
20
|
+
disconnectedCallback(): void;
|
21
|
+
handleClickOutside(e: MouseEvent): void;
|
19
22
|
updateFocus(): void;
|
20
23
|
render(): import('lit-html').TemplateResult<1>;
|
21
24
|
}
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import { LitElement } from 'lit';
|
2
2
|
|
3
3
|
export declare class CommandItem extends LitElement {
|
4
|
-
_id: string;
|
5
|
-
_hidden: string;
|
6
4
|
private static _counter;
|
7
5
|
static styles: import('lit').CSSResult[];
|
6
|
+
selected: boolean;
|
7
|
+
_id: string;
|
8
|
+
_hidden: string;
|
9
|
+
onSelect: () => void;
|
8
10
|
private get identifier();
|
9
11
|
get value(): string;
|
10
|
-
selected: boolean;
|
11
12
|
private handleMouseEvent;
|
12
13
|
render(): import('lit-html').TemplateResult<1>;
|
13
14
|
}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { Meta } from '@storybook/web-components';
|
1
|
+
import { Meta, StoryFn } from '@storybook/web-components';
|
2
2
|
|
3
3
|
declare const _default: Meta;
|
4
4
|
export default _default;
|
5
|
-
export declare const Command:
|
5
|
+
export declare const Command: StoryFn;
|
6
|
+
export declare const CommandWithPopover: StoryFn;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
2
|
-
import {
|
2
|
+
import { ContextMenu } from './context-menu.atom';
|
3
3
|
|
4
|
-
export declare class
|
4
|
+
export declare class ContextMenuContent extends LitElement {
|
5
5
|
static styles: import('lit').CSSResult[];
|
6
6
|
state: string;
|
7
7
|
isOpen: boolean;
|
8
|
-
get
|
8
|
+
get _contextMenu(): ContextMenu | null;
|
9
9
|
connectedCallback(): void;
|
10
10
|
disconnectedCallback(): void;
|
11
11
|
updated(changedProps: PropertyValues): void;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
2
|
+
import { ContextMenuContent } from './context-menu-content';
|
3
|
+
import { ContextMenuCheckboxItem } from './context-menu-checkbox-Item';
|
4
|
+
import { ContextMenuGroup } from './context-menu-group';
|
5
|
+
import { ContextMenuItem } from './context-menu-item';
|
6
|
+
import { ContextMenuRadioItem } from './context-menu-radio-item';
|
7
|
+
import { ContextMenuSeparator } from './context-menu-seperator';
|
8
|
+
import { ContextMenuShortcut } from './context-menu-shortcut';
|
9
|
+
|
10
|
+
declare class ContextMenu extends LitElement {
|
11
|
+
static styles: import('lit').CSSResult[];
|
12
|
+
isOpen: boolean;
|
13
|
+
connectedCallback(): void;
|
14
|
+
disconnectedCallback(): void;
|
15
|
+
toggleDropdown(e: MouseEvent): void;
|
16
|
+
handleClickOutside: (e: MouseEvent) => void;
|
17
|
+
private get _content();
|
18
|
+
protected updated(_changedProperties: PropertyValues): void;
|
19
|
+
private _handleRadioSelected;
|
20
|
+
render(): import('lit-html').TemplateResult<1>;
|
21
|
+
}
|
22
|
+
export { ContextMenu, ContextMenuContent, ContextMenuCheckboxItem, ContextMenuGroup, ContextMenuItem, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, };
|
23
|
+
declare global {
|
24
|
+
interface HTMLElementTagNameMap {
|
25
|
+
'rtg-context-menu': ContextMenu;
|
26
|
+
'rtg-context-menu-checkbox-item': ContextMenuCheckboxItem;
|
27
|
+
'rtg-context-menu-group': ContextMenuGroup;
|
28
|
+
'rtg-context-menu-content': ContextMenuContent;
|
29
|
+
'rtg-context-menu-item': ContextMenuItem;
|
30
|
+
'rtg-context-menu-radio-item': ContextMenuRadioItem;
|
31
|
+
'rtg-context-menu-separator': ContextMenuSeparator;
|
32
|
+
'rtg-context-menu-shortcut': ContextMenuShortcut;
|
33
|
+
}
|
34
|
+
}
|
@@ -15,6 +15,7 @@ declare class DropdownMenu extends LitElement {
|
|
15
15
|
handleClickOutside: (e: MouseEvent) => void;
|
16
16
|
private get _content();
|
17
17
|
protected updated(_changedProperties: PropertyValues): void;
|
18
|
+
private _handleRadioSelected;
|
18
19
|
render(): import('lit-html').TemplateResult<1>;
|
19
20
|
}
|
20
21
|
export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuGroup, };
|
@@ -14,6 +14,13 @@ export * from './card/card.atom';
|
|
14
14
|
export * from './popover/popover.atom';
|
15
15
|
export * from './alert/alert.atom';
|
16
16
|
export * from './badge/badge.atom';
|
17
|
-
export * from './
|
18
|
-
export * from './
|
17
|
+
export * from './combobox/combo-box.atom';
|
18
|
+
export * from './dropdown-menu/dropdown-menu.atom';
|
19
19
|
export * from './toggle/toggle.atom';
|
20
|
+
export * from './context-menu/context-menu.atom';
|
21
|
+
export * from './select/select.atom';
|
22
|
+
export * from './switch/switch.atom';
|
23
|
+
export * from './radio-group/radio-group.atom';
|
24
|
+
export * from './accordion/accordion.atoms';
|
25
|
+
export * from './seperator/separator.atom';
|
26
|
+
export * from './sample-demo/sample-demo';
|
@@ -1 +1 @@
|
|
1
|
-
export declare const inputStyles = "flex h-8 w-full rounded-
|
1
|
+
export declare const inputStyles = "flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 input-base";
|
@@ -3,8 +3,9 @@ import { Popover } from './popover.atom';
|
|
3
3
|
|
4
4
|
export declare class PopoverContent extends LitElement {
|
5
5
|
static styles: import('lit').CSSResult[];
|
6
|
-
|
6
|
+
enableDefaultStyle: boolean;
|
7
7
|
side: 'bottom' | 'left' | 'right' | 'top';
|
8
|
+
get _popover(): Popover | null;
|
8
9
|
private handleClickOutside;
|
9
10
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
10
11
|
protected updated(_changedProperties: PropertyValues): void;
|
@@ -3,8 +3,8 @@ import { Popover } from './popover.atom';
|
|
3
3
|
|
4
4
|
export declare class PopoverTrigger extends LitElement {
|
5
5
|
static styles: import('lit').CSSResult[];
|
6
|
-
handleClick: () => void;
|
7
|
-
protected firstUpdated(_changedProperties: PropertyValues): void;
|
8
6
|
get _popover(): Popover | null;
|
7
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
8
|
+
handleClick: () => void;
|
9
9
|
render(): import('lit-html').TemplateResult<1>;
|
10
10
|
}
|
@@ -3,3 +3,7 @@ export declare const popoverContentStyle: (props?: ({
|
|
3
3
|
state?: "open" | "closed" | null | undefined;
|
4
4
|
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
5
5
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
6
|
+
export declare const popoverContentWithoutStyle: (props?: ({
|
7
|
+
state?: "open" | "closed" | null | undefined;
|
8
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
9
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
@@ -1,19 +1,17 @@
|
|
1
1
|
import { LitElement } from 'lit';
|
2
|
-
import { CheckboxProperties } from './checkbox.type';
|
3
2
|
|
4
|
-
export declare class
|
5
|
-
disabled: boolean;
|
3
|
+
export declare class RadioGroupItem extends LitElement {
|
6
4
|
checked: boolean;
|
7
|
-
|
5
|
+
tabindex: number;
|
8
6
|
value: string;
|
9
|
-
|
7
|
+
id: string;
|
8
|
+
state: string;
|
10
9
|
static styles: import('lit').CSSResult[];
|
11
10
|
private _onClick;
|
12
|
-
click(): void;
|
13
11
|
render(): import('lit-html').TemplateResult<1>;
|
14
12
|
}
|
15
13
|
declare global {
|
16
14
|
interface HTMLElementTagNameMap {
|
17
|
-
'rtg-
|
15
|
+
'rtg-radio-group-item': RadioGroupItem;
|
18
16
|
}
|
19
17
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
import { RadioGroupItem } from './radio-group-item';
|
3
|
+
|
4
|
+
declare class RadioGroup extends LitElement {
|
5
|
+
static styles: import('lit').CSSResult[];
|
6
|
+
connectedCallback(): void;
|
7
|
+
private _handleRadioSelected;
|
8
|
+
render(): import('lit-html').TemplateResult<1>;
|
9
|
+
}
|
10
|
+
export { RadioGroupItem, RadioGroup };
|
11
|
+
declare global {
|
12
|
+
interface HTMLElementTagNameMap {
|
13
|
+
'rtg-radio-group': RadioGroup;
|
14
|
+
'rtg-radio-group-item': RadioGroupItem;
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
|
3
|
+
import * as sampleType from './sample.type';
|
4
|
+
export declare class SampleDemo extends LitElement {
|
5
|
+
static buttonVariants: (props?: ({
|
6
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
7
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
8
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
9
|
+
click: () => void;
|
10
|
+
disabled: boolean;
|
11
|
+
isCustomClass: boolean;
|
12
|
+
variant: sampleType.SampleVariant;
|
13
|
+
size: sampleType.SampleSize;
|
14
|
+
static styles: import('lit').CSSResult[];
|
15
|
+
render(): import('lit-html').TemplateResult<1>;
|
16
|
+
}
|
17
|
+
declare global {
|
18
|
+
interface HTMLElementTagNameMap {
|
19
|
+
'rtg-sample-demo': SampleDemo;
|
20
|
+
}
|
21
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export declare const demoStyle: (props?: ({
|
2
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
3
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
4
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { LitElement } from 'lit';
|
2
2
|
|
3
|
-
export declare class
|
3
|
+
export declare class SelectList extends LitElement {
|
4
4
|
static styles: import('lit').CSSResult[];
|
5
|
+
state: string;
|
6
|
+
isOpen: boolean;
|
5
7
|
render(): import('lit-html').TemplateResult<1>;
|
6
8
|
}
|
@@ -1,6 +1,10 @@
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
2
|
+
import { SelectItem } from './select-item';
|
3
|
+
import { SelectList } from './select-list';
|
4
|
+
import { SelectLabel } from './select-label';
|
5
|
+
import { SelectSeperator } from './select-seperator';
|
2
6
|
|
3
|
-
declare class
|
7
|
+
declare class Select extends LitElement {
|
4
8
|
static styles: import('lit').CSSResult[];
|
5
9
|
isOpen: boolean;
|
6
10
|
selectedValue: string;
|
@@ -8,20 +12,22 @@ declare class ComboBox extends LitElement {
|
|
8
12
|
focusedIndex: number;
|
9
13
|
filteredItems: string[];
|
10
14
|
label: string;
|
11
|
-
items:
|
15
|
+
items: never[];
|
12
16
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
13
17
|
toggleDropdown(): void;
|
14
18
|
selectItem(event: Event): void;
|
15
19
|
handleInputClick(): void;
|
16
|
-
handleSearch(event: Event): void;
|
17
20
|
handleKeyDown(event: KeyboardEvent): void;
|
18
21
|
handleMouseOver(event: Event, index: number): void;
|
19
|
-
updateFocus(): void;
|
20
22
|
render(): import('lit-html').TemplateResult<1>;
|
21
23
|
}
|
22
|
-
export {
|
24
|
+
export { Select, SelectItem, SelectList, SelectLabel, SelectSeperator };
|
23
25
|
declare global {
|
24
26
|
interface HTMLElementTagNameMap {
|
25
|
-
'rtg-
|
27
|
+
'rtg-select': Select;
|
28
|
+
'rtg-select-list': SelectList;
|
29
|
+
'rtg-select-item': SelectItem;
|
30
|
+
'rtg-select-label': SelectLabel;
|
31
|
+
'rtg-select-seperator': SelectSeperator;
|
26
32
|
}
|
27
33
|
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
2
|
+
import { SEPARATOR_ORIENTATION } from './separator.defs';
|
3
|
+
|
4
|
+
export declare class Separator extends BaseElement {
|
5
|
+
orientation: SEPARATOR_ORIENTATION;
|
6
|
+
static styles: import('lit').CSSResult[];
|
7
|
+
protected getAttributesToExclude(): string[];
|
8
|
+
render(): import('lit-html').TemplateResult<1>;
|
9
|
+
}
|
10
|
+
declare global {
|
11
|
+
interface HTMLElementTagNameMap {
|
12
|
+
'rtg-separator': Separator;
|
13
|
+
}
|
14
|
+
}
|
@@ -3,5 +3,6 @@ import { Meta, StoryObj } from '@storybook/web-components';
|
|
3
3
|
declare const meta: Meta;
|
4
4
|
export default meta;
|
5
5
|
type Story = StoryObj;
|
6
|
-
export declare const
|
7
|
-
export declare const
|
6
|
+
export declare const Default: Story;
|
7
|
+
export declare const Horizontal: Story;
|
8
|
+
export declare const Vertical: Story;
|