@torpor/ui 0.2.0 → 0.2.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/CHANGELOG.md +12 -0
- package/dist/Accordion/Accordion.torp +23 -11
- package/dist/Accordion/AccordionContent.torp +13 -6
- package/dist/Accordion/AccordionHeader.torp +14 -5
- package/dist/Accordion/AccordionItem.torp +22 -8
- package/dist/Accordion/AccordionTrigger.torp +14 -6
- package/dist/Accordion/AccordionTypes.ts +2 -0
- package/dist/Accordion/index.d.ts +100 -35
- package/dist/Breadcrumb/Breadcrumb.torp +12 -3
- package/dist/Breadcrumb/BreadcrumbItem.torp +12 -3
- package/dist/Breadcrumb/BreadcrumbSeparator.torp +10 -1
- package/dist/Breadcrumb/index.d.ts +49 -21
- package/dist/Calendar/Calendar.torp +9 -1
- package/dist/Calendar/CalendarDay.torp +9 -1
- package/dist/Calendar/index.d.ts +16 -18
- package/dist/Dialog/Dialog.torp +13 -3
- package/dist/Dialog/DialogBody.torp +11 -3
- package/dist/Dialog/DialogButton.torp +16 -4
- package/dist/Dialog/DialogFooter.torp +11 -1
- package/dist/Dialog/DialogHeader.torp +11 -2
- package/dist/Dialog/index.d.ts +78 -35
- package/dist/Disclosure/Disclosure.torp +17 -7
- package/dist/Disclosure/DisclosureContent.torp +13 -6
- package/dist/Disclosure/DisclosureHeader.torp +14 -5
- package/dist/Disclosure/DisclosureTrigger.torp +10 -2
- package/dist/Disclosure/index.d.ts +67 -28
- package/dist/Drawer/Drawer.torp +11 -1
- package/dist/Drawer/index.d.ts +10 -9
- package/dist/Form/Field.torp +93 -0
- package/dist/Form/Form.torp +131 -0
- package/dist/Form/FormTypes.ts +30 -0
- package/dist/Form/Input.torp +94 -0
- package/dist/Form/Label.torp +31 -0
- package/dist/Form/Message.torp +35 -0
- package/dist/Form/StandardSchemaV1.ts +70 -0
- package/dist/Form/index.d.ts +117 -0
- package/dist/Form/index.js +22 -0
- package/dist/Form/index.js.map +1 -0
- package/dist/Menu/Menu.torp +12 -3
- package/dist/Menu/MenuButton.torp +14 -3
- package/dist/Menu/MenuCheck.torp +14 -3
- package/dist/Menu/MenuGroup.torp +13 -3
- package/dist/Menu/MenuIndicator.torp +12 -3
- package/dist/Menu/MenuPopout.torp +17 -6
- package/dist/Menu/MenuPopoutContent.torp +13 -4
- package/dist/Menu/MenuPopoutTrigger.torp +13 -4
- package/dist/Menu/MenuRadio.torp +16 -5
- package/dist/Menu/MenuRadioGroup.torp +16 -5
- package/dist/Menu/MenuSeparator.torp +11 -1
- package/dist/Menu/index.d.ts +170 -77
- package/dist/MenuBar/MenuBar.torp +13 -4
- package/dist/MenuBar/MenuBarItem.torp +17 -6
- package/dist/MenuBar/MenuBarItemContent.torp +13 -4
- package/dist/MenuBar/MenuBarItemTrigger.torp +11 -2
- package/dist/MenuBar/index.d.ts +79 -28
- package/dist/NavMenu/NavMenu.torp +13 -4
- package/dist/NavMenu/NavMenuButton.torp +12 -5
- package/dist/NavMenu/NavMenuElement.torp +14 -6
- package/dist/NavMenu/NavMenuGroup.torp +12 -3
- package/dist/NavMenu/NavMenuGroupHeader.torp +12 -4
- package/dist/NavMenu/NavMenuLink.torp +16 -8
- package/dist/NavMenu/NavMenuPopout.torp +11 -3
- package/dist/NavMenu/NavMenuPopoutButton.torp +14 -8
- package/dist/NavMenu/NavMenuPopoutContent.torp +13 -3
- package/dist/NavMenu/NavMenuSeparator.torp +10 -1
- package/dist/NavMenu/index.d.ts +147 -70
- package/dist/Notification/Notification.torp +15 -5
- package/dist/Notification/NotificationClose.torp +10 -1
- package/dist/Notification/NotificationContainer.torp +11 -1
- package/dist/Notification/NotificationContent.torp +11 -1
- package/dist/Notification/index.d.ts +46 -28
- package/dist/Popover/Popover.torp +20 -6
- package/dist/Popover/PopoverContent.torp +10 -1
- package/dist/Popover/PopoverContentAnchored.torp +13 -6
- package/dist/Popover/PopoverContentContextual.torp +10 -1
- package/dist/Popover/PopoverOverlay.torp +10 -1
- package/dist/Popover/PopoverTrigger.torp +10 -1
- package/dist/Popover/PopoverTriggerContextual.torp +10 -1
- package/dist/Popover/PopoverTriggerHover.torp +11 -2
- package/dist/Popover/index.d.ts +101 -56
- package/dist/TabGroup/TabContent.torp +11 -5
- package/dist/TabGroup/TabGroup.torp +21 -9
- package/dist/TabGroup/TabHeader.torp +14 -5
- package/dist/TabGroup/TabList.torp +13 -4
- package/dist/TabGroup/TabTrigger.torp +12 -4
- package/dist/TabGroup/index.d.ts +93 -35
- package/dist/icons/ArrowDown.torp +3 -3
- package/dist/icons/ArrowLeft.torp +3 -3
- package/dist/icons/ArrowRight.torp +3 -3
- package/dist/icons/ArrowUp.torp +3 -3
- package/dist/icons/Bars.torp +3 -3
- package/dist/icons/Check.torp +3 -3
- package/dist/icons/ChevronDown.torp +3 -3
- package/dist/icons/ChevronLeft.torp +3 -3
- package/dist/icons/ChevronRight.torp +3 -3
- package/dist/icons/ChevronUp.torp +3 -3
- package/dist/icons/Cross.torp +3 -3
- package/dist/icons/Loading.torp +3 -3
- package/dist/icons/Minus.torp +3 -3
- package/dist/icons/Plus.torp +3 -3
- package/dist/icons/index.d.ts +14 -126
- package/dist/metafile-esm.json +1 -1
- package/package.json +13 -4
- package/src/Accordion/Accordion.torp +23 -11
- package/src/Accordion/AccordionContent.torp +13 -6
- package/src/Accordion/AccordionHeader.torp +14 -5
- package/src/Accordion/AccordionItem.torp +22 -8
- package/src/Accordion/AccordionTrigger.torp +14 -6
- package/src/Accordion/AccordionTypes.ts +2 -0
- package/src/Breadcrumb/Breadcrumb.torp +12 -3
- package/src/Breadcrumb/BreadcrumbItem.torp +12 -3
- package/src/Breadcrumb/BreadcrumbSeparator.torp +10 -1
- package/src/Calendar/Calendar.torp +9 -1
- package/src/Calendar/CalendarDay.torp +9 -1
- package/src/Dialog/Dialog.torp +13 -3
- package/src/Dialog/DialogBody.torp +11 -3
- package/src/Dialog/DialogButton.torp +16 -4
- package/src/Dialog/DialogFooter.torp +11 -1
- package/src/Dialog/DialogHeader.torp +11 -2
- package/src/Disclosure/Disclosure.torp +17 -7
- package/src/Disclosure/DisclosureContent.torp +13 -6
- package/src/Disclosure/DisclosureHeader.torp +14 -5
- package/src/Disclosure/DisclosureTrigger.torp +10 -2
- package/src/Drawer/Drawer.torp +11 -1
- package/src/Form/Field.torp +93 -0
- package/src/Form/Form.torp +131 -0
- package/src/Form/FormTypes.ts +30 -0
- package/src/Form/Input.torp +94 -0
- package/src/Form/Label.torp +31 -0
- package/src/Form/Message.torp +35 -0
- package/src/Form/StandardSchemaV1.ts +70 -0
- package/src/Form/index.ts +7 -0
- package/src/Menu/Menu.torp +12 -3
- package/src/Menu/MenuButton.torp +14 -3
- package/src/Menu/MenuCheck.torp +14 -3
- package/src/Menu/MenuGroup.torp +13 -3
- package/src/Menu/MenuIndicator.torp +12 -3
- package/src/Menu/MenuPopout.torp +17 -6
- package/src/Menu/MenuPopoutContent.torp +13 -4
- package/src/Menu/MenuPopoutTrigger.torp +13 -4
- package/src/Menu/MenuRadio.torp +16 -5
- package/src/Menu/MenuRadioGroup.torp +16 -5
- package/src/Menu/MenuSeparator.torp +11 -1
- package/src/MenuBar/MenuBar.torp +13 -4
- package/src/MenuBar/MenuBarItem.torp +17 -6
- package/src/MenuBar/MenuBarItemContent.torp +13 -4
- package/src/MenuBar/MenuBarItemTrigger.torp +11 -2
- package/src/NavMenu/NavMenu.torp +13 -4
- package/src/NavMenu/NavMenuButton.torp +12 -5
- package/src/NavMenu/NavMenuElement.torp +14 -6
- package/src/NavMenu/NavMenuGroup.torp +12 -3
- package/src/NavMenu/NavMenuGroupHeader.torp +12 -4
- package/src/NavMenu/NavMenuLink.torp +16 -8
- package/src/NavMenu/NavMenuPopout.torp +11 -3
- package/src/NavMenu/NavMenuPopoutButton.torp +14 -8
- package/src/NavMenu/NavMenuPopoutContent.torp +13 -3
- package/src/NavMenu/NavMenuSeparator.torp +10 -1
- package/src/Notification/Notification.torp +15 -5
- package/src/Notification/NotificationClose.torp +10 -1
- package/src/Notification/NotificationContainer.torp +11 -1
- package/src/Notification/NotificationContent.torp +11 -1
- package/src/Popover/Popover.torp +20 -6
- package/src/Popover/PopoverContent.torp +10 -1
- package/src/Popover/PopoverContentAnchored.torp +13 -6
- package/src/Popover/PopoverContentContextual.torp +10 -1
- package/src/Popover/PopoverOverlay.torp +10 -1
- package/src/Popover/PopoverTrigger.torp +10 -1
- package/src/Popover/PopoverTriggerContextual.torp +10 -1
- package/src/Popover/PopoverTriggerHover.torp +11 -2
- package/src/TabGroup/TabContent.torp +11 -5
- package/src/TabGroup/TabGroup.torp +21 -9
- package/src/TabGroup/TabHeader.torp +14 -5
- package/src/TabGroup/TabList.torp +13 -4
- package/src/TabGroup/TabTrigger.torp +12 -4
- package/src/icons/ArrowDown.torp +3 -3
- package/src/icons/ArrowLeft.torp +3 -3
- package/src/icons/ArrowRight.torp +3 -3
- package/src/icons/ArrowUp.torp +3 -3
- package/src/icons/Bars.torp +3 -3
- package/src/icons/Check.torp +3 -3
- package/src/icons/ChevronDown.torp +3 -3
- package/src/icons/ChevronLeft.torp +3 -3
- package/src/icons/ChevronRight.torp +3 -3
- package/src/icons/ChevronUp.torp +3 -3
- package/src/icons/Cross.torp +3 -3
- package/src/icons/Loading.torp +3 -3
- package/src/icons/Minus.torp +3 -3
- package/src/icons/Plus.torp +3 -3
- package/test/Accordion/components/AccordionAccessibility.torp +2 -0
- package/test/Accordion/components/AccordionKeyboard.torp +2 -0
- package/test/Accordion/components/AccordionList.torp +2 -0
- package/test/Accordion/components/AccordionMultiple.torp +2 -0
- package/test/Accordion/components/AccordionSingle.torp +2 -0
- package/test/Disclosure/accessibility.test.ts +3 -2
- package/test/Disclosure/components/DisclosureTest.torp +2 -0
- package/test/Disclosure/toggle.test.ts +3 -2
- package/test/Form/components/FieldTest.torp +25 -0
- package/test/Form/components/FormTest.torp +31 -0
- package/test/Form/components/InputTest.torp +9 -0
- package/test/Form/field.test.ts +34 -0
- package/test/Form/form.test.ts +34 -0
- package/test/Form/input.test.ts +19 -0
- package/test/Menu/accessibility.test.ts +3 -2
- package/test/Menu/basic.test.ts +11 -10
- package/test/MenuBar/accessibility.test.ts +3 -2
- package/test/MenuBar/basic.test.ts +3 -2
- package/test/NavMenu/basic.test.ts +1 -1
- package/test/NavMenu/components/{NavMenu.torp → NavMenuBasic.torp} +1 -1
- package/test/TabGroup/components/TabGroupAccessibility.torp +2 -0
- package/test/TabGroup/components/TabGroupKeyboard.torp +2 -0
- package/test/TabGroup/components/TabGroupList.torp +2 -0
- package/test/TabGroup/components/TabGroupTrigger.torp +2 -0
- package/tsup.config.ts +1 -1
package/dist/TabGroup/index.d.ts
CHANGED
|
@@ -1,90 +1,148 @@
|
|
|
1
1
|
import { type SlotRender } from "@torpor/view";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
interface TabContentProps {
|
|
5
|
+
/** An ID for the root element */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Class name(s) for the root element */
|
|
8
|
+
class?: string,
|
|
9
|
+
}
|
|
10
|
+
|
|
4
11
|
/**
|
|
5
|
-
*
|
|
6
|
-
* @param $parent -- The parent node.
|
|
7
|
-
* @param $anchor -- The node to mount the component before.
|
|
8
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
9
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
10
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
12
|
+
* Content for a TabGroup, which can be revealed or hidden by an associated TabTrigger.
|
|
11
13
|
*/
|
|
12
14
|
declare function TabContent(
|
|
13
15
|
$parent: ParentNode,
|
|
14
16
|
$anchor: Node | null,
|
|
15
|
-
$props:
|
|
17
|
+
$props: TabContentProps,
|
|
16
18
|
$context?: Record<PropertyKey, any>,
|
|
17
19
|
$slots?: Record<string, SlotRender>,
|
|
18
20
|
): void;
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
|
|
24
|
+
interface TabGroupProps {
|
|
25
|
+
/** An ID for the root element */
|
|
26
|
+
id?: string;
|
|
27
|
+
/** Class name(s) for the root element */
|
|
28
|
+
class?: string,
|
|
29
|
+
/** The orientation of the tab buttons, which affects keyboard navigation */
|
|
30
|
+
orientation?: "horizontal" | "vertical",
|
|
31
|
+
/** How tabs are activated; if automatic they are shown on focus, if manual they must be clicked */
|
|
32
|
+
activation?: "automatic" | "manual",
|
|
33
|
+
/** The value of the active TabContent */
|
|
34
|
+
value?: string | string[],
|
|
35
|
+
/** If set to true, the user cannot interact with any items in the TabGroup */
|
|
36
|
+
disabled?: boolean,
|
|
37
|
+
/** Raised when the active item has changed */
|
|
38
|
+
onchange?: (value: string | string[]) => void
|
|
39
|
+
}
|
|
40
|
+
|
|
22
41
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
42
|
+
* A list of interactive headings coupled with layered sections of content that
|
|
43
|
+
* enable users to reveal a single section of content at a time.
|
|
44
|
+
*
|
|
45
|
+
* See [the WAI ARIA guidelines for Tabs](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/).
|
|
46
|
+
*
|
|
47
|
+
* The structure of a TabGroup is:
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
* <TabGroup>
|
|
51
|
+
* <TabList>
|
|
52
|
+
* <TabHeader>
|
|
53
|
+
* <TabTrigger />
|
|
54
|
+
* </TabHeader>
|
|
55
|
+
* </TabList>
|
|
56
|
+
* <TabContent />
|
|
57
|
+
* </TabGroup>
|
|
58
|
+
* ```
|
|
29
59
|
*/
|
|
30
60
|
declare function TabGroup(
|
|
31
61
|
$parent: ParentNode,
|
|
32
62
|
$anchor: Node | null,
|
|
33
|
-
$props:
|
|
63
|
+
$props: TabGroupProps,
|
|
34
64
|
$context?: Record<PropertyKey, any>,
|
|
35
65
|
$slots?: Record<string, SlotRender>,
|
|
36
66
|
): void;
|
|
37
67
|
|
|
38
68
|
|
|
39
69
|
|
|
70
|
+
interface TabHeaderProps {
|
|
71
|
+
/** An ID for the root element */
|
|
72
|
+
id?: string;
|
|
73
|
+
/** Class name(s) for the root element */
|
|
74
|
+
class?: string,
|
|
75
|
+
/** The type of HTML header to use */
|
|
76
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
|
|
77
|
+
}
|
|
78
|
+
|
|
40
79
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
80
|
+
* The header for a tab item, which contains the TabTrigger.
|
|
81
|
+
*
|
|
82
|
+
* The structure of a TabHeader is:
|
|
83
|
+
*
|
|
84
|
+
* ```
|
|
85
|
+
* <TabHeader>
|
|
86
|
+
* <TabTrigger />
|
|
87
|
+
* </TabHeader>
|
|
88
|
+
* ```
|
|
47
89
|
*/
|
|
48
90
|
declare function TabHeader(
|
|
49
91
|
$parent: ParentNode,
|
|
50
92
|
$anchor: Node | null,
|
|
51
|
-
$props:
|
|
93
|
+
$props: TabHeaderProps,
|
|
52
94
|
$context?: Record<PropertyKey, any>,
|
|
53
95
|
$slots?: Record<string, SlotRender>,
|
|
54
96
|
): void;
|
|
55
97
|
|
|
56
98
|
|
|
57
99
|
|
|
100
|
+
interface TabListProps {
|
|
101
|
+
/** An ID for the root element */
|
|
102
|
+
id?: string;
|
|
103
|
+
/** Class name(s) for the root element */
|
|
104
|
+
class?: string,
|
|
105
|
+
/** An ARIA label for describing the tab list to screen readers */
|
|
106
|
+
ariaLabel?: string,
|
|
107
|
+
}
|
|
108
|
+
|
|
58
109
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
110
|
+
* A component that holds the TabHeaders of a TabGroup.
|
|
111
|
+
*
|
|
112
|
+
* The structure of a TabList is:
|
|
113
|
+
*
|
|
114
|
+
* ```
|
|
115
|
+
* <TabList>
|
|
116
|
+
* <TabHeader>
|
|
117
|
+
* <TabTrigger />
|
|
118
|
+
* </TabHeader>
|
|
119
|
+
* </TabList>
|
|
120
|
+
* ```
|
|
65
121
|
*/
|
|
66
122
|
declare function TabList(
|
|
67
123
|
$parent: ParentNode,
|
|
68
124
|
$anchor: Node | null,
|
|
69
|
-
$props:
|
|
125
|
+
$props: TabListProps,
|
|
70
126
|
$context?: Record<PropertyKey, any>,
|
|
71
127
|
$slots?: Record<string, SlotRender>,
|
|
72
128
|
): void;
|
|
73
129
|
|
|
74
130
|
|
|
75
131
|
|
|
132
|
+
interface TabTriggerProps {
|
|
133
|
+
/** An ID for the root element */
|
|
134
|
+
id?: string;
|
|
135
|
+
/** Class name(s) for the root element */
|
|
136
|
+
class?: string,
|
|
137
|
+
}
|
|
138
|
+
|
|
76
139
|
/**
|
|
77
|
-
*
|
|
78
|
-
* @param $parent -- The parent node.
|
|
79
|
-
* @param $anchor -- The node to mount the component before.
|
|
80
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
81
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
82
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
140
|
+
* A header button for a tab item, which can be used to reveal an associated TabContent.
|
|
83
141
|
*/
|
|
84
142
|
declare function TabTrigger(
|
|
85
143
|
$parent: ParentNode,
|
|
86
144
|
$anchor: Node | null,
|
|
87
|
-
$props
|
|
145
|
+
$props: TabTriggerProps,
|
|
88
146
|
$context?: Record<PropertyKey, any>,
|
|
89
147
|
$slots?: Record<string, SlotRender>,
|
|
90
148
|
): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ArrowDown() {
|
|
1
|
+
export default function ArrowDown($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ArrowLeft() {
|
|
1
|
+
export default function ArrowLeft($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ArrowRight() {
|
|
1
|
+
export default function ArrowRight($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
package/dist/icons/ArrowUp.torp
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ArrowUp() {
|
|
1
|
+
export default function ArrowUp($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
package/dist/icons/Bars.torp
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function Bars() {
|
|
1
|
+
export default function Bars($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
package/dist/icons/Check.torp
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function Check() {
|
|
1
|
+
export default function Check($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ChevronDown() {
|
|
1
|
+
export default function ChevronDown($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ChevronLeft() {
|
|
1
|
+
export default function ChevronLeft($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ChevronRight() {
|
|
1
|
+
export default function ChevronRight($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function ChevronUp() {
|
|
1
|
+
export default function ChevronUp($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
package/dist/icons/Cross.torp
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function Cross() {
|
|
1
|
+
export default function Cross($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
package/dist/icons/Loading.torp
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function Loading() {
|
|
1
|
+
export default function Loading($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="20"
|
package/dist/icons/Minus.torp
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function Minus() {
|
|
1
|
+
export default function Minus($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
package/dist/icons/Plus.torp
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default function Plus() {
|
|
1
|
+
export default function Plus($props: any) {
|
|
2
2
|
@render {
|
|
3
3
|
<svg
|
|
4
|
-
{$props
|
|
5
|
-
class={`torp-icon ${$props
|
|
4
|
+
{$props?.id}
|
|
5
|
+
class={`torp-icon ${$props?.class ?? ""}`.trim()}
|
|
6
6
|
viewBox="0 0 100 100"
|
|
7
7
|
stroke-linejoin="round"
|
|
8
8
|
stroke-width="12"
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1,252 +1,140 @@
|
|
|
1
1
|
import { type SlotRender } from "@torpor/view";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
6
|
-
* @param $parent -- The parent node.
|
|
7
|
-
* @param $anchor -- The node to mount the component before.
|
|
8
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
9
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
10
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
11
|
-
*/
|
|
12
4
|
declare function ArrowDown(
|
|
13
5
|
$parent: ParentNode,
|
|
14
6
|
$anchor: Node | null,
|
|
15
|
-
$props
|
|
7
|
+
$props: any,
|
|
16
8
|
$context?: Record<PropertyKey, any>,
|
|
17
9
|
$slots?: Record<string, SlotRender>,
|
|
18
10
|
): void;
|
|
19
11
|
|
|
20
12
|
|
|
21
13
|
|
|
22
|
-
/**
|
|
23
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
24
|
-
* @param $parent -- The parent node.
|
|
25
|
-
* @param $anchor -- The node to mount the component before.
|
|
26
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
27
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
28
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
29
|
-
*/
|
|
30
14
|
declare function ArrowLeft(
|
|
31
15
|
$parent: ParentNode,
|
|
32
16
|
$anchor: Node | null,
|
|
33
|
-
$props
|
|
17
|
+
$props: any,
|
|
34
18
|
$context?: Record<PropertyKey, any>,
|
|
35
19
|
$slots?: Record<string, SlotRender>,
|
|
36
20
|
): void;
|
|
37
21
|
|
|
38
22
|
|
|
39
23
|
|
|
40
|
-
/**
|
|
41
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
42
|
-
* @param $parent -- The parent node.
|
|
43
|
-
* @param $anchor -- The node to mount the component before.
|
|
44
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
45
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
46
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
47
|
-
*/
|
|
48
24
|
declare function ArrowRight(
|
|
49
25
|
$parent: ParentNode,
|
|
50
26
|
$anchor: Node | null,
|
|
51
|
-
$props
|
|
27
|
+
$props: any,
|
|
52
28
|
$context?: Record<PropertyKey, any>,
|
|
53
29
|
$slots?: Record<string, SlotRender>,
|
|
54
30
|
): void;
|
|
55
31
|
|
|
56
32
|
|
|
57
33
|
|
|
58
|
-
/**
|
|
59
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
60
|
-
* @param $parent -- The parent node.
|
|
61
|
-
* @param $anchor -- The node to mount the component before.
|
|
62
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
63
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
64
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
65
|
-
*/
|
|
66
34
|
declare function ArrowUp(
|
|
67
35
|
$parent: ParentNode,
|
|
68
36
|
$anchor: Node | null,
|
|
69
|
-
$props
|
|
37
|
+
$props: any,
|
|
70
38
|
$context?: Record<PropertyKey, any>,
|
|
71
39
|
$slots?: Record<string, SlotRender>,
|
|
72
40
|
): void;
|
|
73
41
|
|
|
74
42
|
|
|
75
43
|
|
|
76
|
-
/**
|
|
77
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
78
|
-
* @param $parent -- The parent node.
|
|
79
|
-
* @param $anchor -- The node to mount the component before.
|
|
80
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
81
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
82
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
83
|
-
*/
|
|
84
44
|
declare function Bars(
|
|
85
45
|
$parent: ParentNode,
|
|
86
46
|
$anchor: Node | null,
|
|
87
|
-
$props
|
|
47
|
+
$props: any,
|
|
88
48
|
$context?: Record<PropertyKey, any>,
|
|
89
49
|
$slots?: Record<string, SlotRender>,
|
|
90
50
|
): void;
|
|
91
51
|
|
|
92
52
|
|
|
93
53
|
|
|
94
|
-
/**
|
|
95
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
96
|
-
* @param $parent -- The parent node.
|
|
97
|
-
* @param $anchor -- The node to mount the component before.
|
|
98
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
99
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
100
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
101
|
-
*/
|
|
102
54
|
declare function Check(
|
|
103
55
|
$parent: ParentNode,
|
|
104
56
|
$anchor: Node | null,
|
|
105
|
-
$props
|
|
57
|
+
$props: any,
|
|
106
58
|
$context?: Record<PropertyKey, any>,
|
|
107
59
|
$slots?: Record<string, SlotRender>,
|
|
108
60
|
): void;
|
|
109
61
|
|
|
110
62
|
|
|
111
63
|
|
|
112
|
-
/**
|
|
113
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
114
|
-
* @param $parent -- The parent node.
|
|
115
|
-
* @param $anchor -- The node to mount the component before.
|
|
116
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
117
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
118
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
119
|
-
*/
|
|
120
64
|
declare function ChevronDown(
|
|
121
65
|
$parent: ParentNode,
|
|
122
66
|
$anchor: Node | null,
|
|
123
|
-
$props
|
|
67
|
+
$props: any,
|
|
124
68
|
$context?: Record<PropertyKey, any>,
|
|
125
69
|
$slots?: Record<string, SlotRender>,
|
|
126
70
|
): void;
|
|
127
71
|
|
|
128
72
|
|
|
129
73
|
|
|
130
|
-
/**
|
|
131
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
132
|
-
* @param $parent -- The parent node.
|
|
133
|
-
* @param $anchor -- The node to mount the component before.
|
|
134
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
135
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
136
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
137
|
-
*/
|
|
138
74
|
declare function ChevronLeft(
|
|
139
75
|
$parent: ParentNode,
|
|
140
76
|
$anchor: Node | null,
|
|
141
|
-
$props
|
|
77
|
+
$props: any,
|
|
142
78
|
$context?: Record<PropertyKey, any>,
|
|
143
79
|
$slots?: Record<string, SlotRender>,
|
|
144
80
|
): void;
|
|
145
81
|
|
|
146
82
|
|
|
147
83
|
|
|
148
|
-
/**
|
|
149
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
150
|
-
* @param $parent -- The parent node.
|
|
151
|
-
* @param $anchor -- The node to mount the component before.
|
|
152
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
153
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
154
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
155
|
-
*/
|
|
156
84
|
declare function ChevronRight(
|
|
157
85
|
$parent: ParentNode,
|
|
158
86
|
$anchor: Node | null,
|
|
159
|
-
$props
|
|
87
|
+
$props: any,
|
|
160
88
|
$context?: Record<PropertyKey, any>,
|
|
161
89
|
$slots?: Record<string, SlotRender>,
|
|
162
90
|
): void;
|
|
163
91
|
|
|
164
92
|
|
|
165
93
|
|
|
166
|
-
/**
|
|
167
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
168
|
-
* @param $parent -- The parent node.
|
|
169
|
-
* @param $anchor -- The node to mount the component before.
|
|
170
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
171
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
172
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
173
|
-
*/
|
|
174
94
|
declare function ChevronUp(
|
|
175
95
|
$parent: ParentNode,
|
|
176
96
|
$anchor: Node | null,
|
|
177
|
-
$props
|
|
97
|
+
$props: any,
|
|
178
98
|
$context?: Record<PropertyKey, any>,
|
|
179
99
|
$slots?: Record<string, SlotRender>,
|
|
180
100
|
): void;
|
|
181
101
|
|
|
182
102
|
|
|
183
103
|
|
|
184
|
-
/**
|
|
185
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
186
|
-
* @param $parent -- The parent node.
|
|
187
|
-
* @param $anchor -- The node to mount the component before.
|
|
188
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
189
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
190
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
191
|
-
*/
|
|
192
104
|
declare function Cross(
|
|
193
105
|
$parent: ParentNode,
|
|
194
106
|
$anchor: Node | null,
|
|
195
|
-
$props
|
|
107
|
+
$props: any,
|
|
196
108
|
$context?: Record<PropertyKey, any>,
|
|
197
109
|
$slots?: Record<string, SlotRender>,
|
|
198
110
|
): void;
|
|
199
111
|
|
|
200
112
|
|
|
201
113
|
|
|
202
|
-
/**
|
|
203
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
204
|
-
* @param $parent -- The parent node.
|
|
205
|
-
* @param $anchor -- The node to mount the component before.
|
|
206
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
207
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
208
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
209
|
-
*/
|
|
210
114
|
declare function Loading(
|
|
211
115
|
$parent: ParentNode,
|
|
212
116
|
$anchor: Node | null,
|
|
213
|
-
$props
|
|
117
|
+
$props: any,
|
|
214
118
|
$context?: Record<PropertyKey, any>,
|
|
215
119
|
$slots?: Record<string, SlotRender>,
|
|
216
120
|
): void;
|
|
217
121
|
|
|
218
122
|
|
|
219
123
|
|
|
220
|
-
/**
|
|
221
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
222
|
-
* @param $parent -- The parent node.
|
|
223
|
-
* @param $anchor -- The node to mount the component before.
|
|
224
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
225
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
226
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
227
|
-
*/
|
|
228
124
|
declare function Minus(
|
|
229
125
|
$parent: ParentNode,
|
|
230
126
|
$anchor: Node | null,
|
|
231
|
-
$props
|
|
127
|
+
$props: any,
|
|
232
128
|
$context?: Record<PropertyKey, any>,
|
|
233
129
|
$slots?: Record<string, SlotRender>,
|
|
234
130
|
): void;
|
|
235
131
|
|
|
236
132
|
|
|
237
133
|
|
|
238
|
-
/**
|
|
239
|
-
* Mounts or hydrates the component into the supplied parent node.
|
|
240
|
-
* @param $parent -- The parent node.
|
|
241
|
-
* @param $anchor -- The node to mount the component before.
|
|
242
|
-
* @param $props -- The values that have been passed into the component as properties.
|
|
243
|
-
* @param $context -- Values that have been passed into the component from its ancestors.
|
|
244
|
-
* @param $slots -- Functions for rendering children into slot nodes within the component.
|
|
245
|
-
*/
|
|
246
134
|
declare function Plus(
|
|
247
135
|
$parent: ParentNode,
|
|
248
136
|
$anchor: Node | null,
|
|
249
|
-
$props
|
|
137
|
+
$props: any,
|
|
250
138
|
$context?: Record<PropertyKey, any>,
|
|
251
139
|
$slots?: Record<string, SlotRender>,
|
|
252
140
|
): void;
|