opui-css 5.0.0 → 5.0.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 +282 -276
- package/LICENSE +21 -21
- package/MIGRATING.md +127 -127
- package/README.md +87 -87
- package/astro/index.ts +46 -46
- package/components/AGENTS.md +248 -248
- package/components/Accordion/Accordion.astro +42 -42
- package/components/Anchor/Anchor.astro +51 -51
- package/components/Avatar/Avatar.astro +38 -38
- package/components/Badge/Badge.astro +59 -59
- package/components/Button/Button.astro +45 -45
- package/components/ButtonGroup/ButtonGroup.astro +29 -29
- package/components/Callout/Callout.astro +75 -75
- package/components/Card/Card.astro +36 -36
- package/components/Checkbox/Checkbox.astro +76 -76
- package/components/Checkbox/CheckboxInput.astro +32 -32
- package/components/Chip/Chip.astro +37 -37
- package/components/ClassicSelect/ClassicSelect.astro +83 -83
- package/components/DescriptionList/Description.astro +12 -12
- package/components/DescriptionList/DescriptionList.astro +22 -22
- package/components/DescriptionList/Item.astro +12 -12
- package/components/DescriptionList/Term.astro +12 -12
- package/components/DescriptionList/index.ts +12 -12
- package/components/Dialog/Dialog.astro +41 -41
- package/components/Divider/Divider.astro +17 -17
- package/components/Drawer/Drawer.astro +49 -49
- package/components/Drawer/DrawerFooter.astro +14 -14
- package/components/Drawer/DrawerHeader.astro +31 -31
- package/components/FieldDescription/FieldDescription.astro +13 -13
- package/components/FieldGroup/FieldGroup.astro +31 -31
- package/components/FieldLegend/FieldLegend.astro +15 -15
- package/components/FieldSet/FieldSet.astro +15 -15
- package/components/Form/Form.astro +15 -15
- package/components/IconButton/IconButton.astro +26 -26
- package/components/List/List.astro +36 -36
- package/components/ListItem/ListItem.astro +118 -118
- package/components/Progress/Progress.astro +41 -40
- package/components/Radio/Radio.astro +70 -70
- package/components/Radio/RadioInput.astro +24 -24
- package/components/Range/Range.astro +136 -136
- package/components/Select/Select.astro +106 -106
- package/components/Switch/Switch.astro +101 -101
- package/components/Switch/SwitchInput.astro +25 -25
- package/components/Table/Body.astro +13 -13
- package/components/Table/Cell.astro +13 -13
- package/components/Table/Column.astro +15 -15
- package/components/Table/ColumnGroup.astro +13 -13
- package/components/Table/Head.astro +13 -13
- package/components/Table/HeaderCell.astro +13 -13
- package/components/Table/Row.astro +13 -13
- package/components/Table/Table.astro +18 -18
- package/components/Table/index.ts +20 -20
- package/components/Tabs/Tabs.astro +28 -28
- package/components/Tabs/TabsItem.astro +47 -47
- package/components/Tabs/TabsPanel.astro +21 -21
- package/components/Tabs/TabsTab.astro +19 -19
- package/components/Tabs/index.ts +14 -14
- package/components/TextField/TextField.astro +128 -128
- package/components/Textarea/Textarea.astro +106 -106
- package/components/Toast/Toast.astro +42 -42
- package/components/ToggleButton/ToggleButton.astro +53 -53
- package/components/ToggleGroup/ToggleGroup.astro +49 -49
- package/components/Tooltip/Tooltip.astro +30 -30
- package/core/normalize.css +194 -194
- package/core/palette.css +59 -59
- package/core/utils.css +71 -71
- package/css/components/accordion.css +174 -174
- package/css/components/anchor.css +27 -27
- package/css/components/avatar.css +65 -65
- package/css/components/badge.css +107 -107
- package/css/components/button-group.css +179 -179
- package/css/components/button.css +215 -215
- package/css/components/callout.css +109 -109
- package/css/components/card.css +117 -117
- package/css/components/checkbox.css +205 -205
- package/css/components/chip.css +87 -87
- package/css/components/description-list.css +80 -80
- package/css/components/dialog.css +68 -68
- package/css/components/divider.css +20 -20
- package/css/components/drawer.css +171 -171
- package/css/components/form.css +146 -146
- package/css/components/icon-button.css +139 -139
- package/css/components/link.css +21 -21
- package/css/components/list.css +345 -345
- package/css/components/progress.css +102 -97
- package/css/components/radio.css +172 -172
- package/css/components/range.css +337 -337
- package/css/components/select.css +169 -169
- package/css/components/spinner.css +37 -37
- package/css/components/switch.css +268 -268
- package/css/components/table.css +179 -179
- package/css/components/tabs.css +83 -83
- package/css/components/text-field.css +450 -450
- package/css/components/text-input.css +64 -64
- package/css/components/textarea.css +24 -24
- package/css/components/toast.css +161 -161
- package/css/components/toggle-button.css +87 -87
- package/css/components/toggle-group.css +56 -56
- package/css/components/tooltip.css +67 -67
- package/css/components/typography.css +585 -585
- package/css/components.css +41 -41
- package/css/imports.css +16 -16
- package/css/js/checkbox.js +21 -21
- package/css/js/toast.js +94 -94
- package/css/theme.css +132 -132
- package/dist/op.css +65 -65
- package/dist/op.css.map +1 -1
- package/dist/opui.components.css +5159 -5154
- package/dist/opui.components.css.map +1 -1
- package/dist/opui.css +5668 -5663
- package/dist/opui.css.map +1 -1
- package/env.d.ts +14 -14
- package/open-props.css +9 -9
- package/package.json +81 -81
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
actionsAlign?: "start" | "end"
|
|
5
|
-
class?: string
|
|
6
|
-
closedby?: "any" | "closerequest" | "none"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const title = "Dialog"
|
|
10
|
-
|
|
11
|
-
const { actionsAlign, class: className, closedby, ...rest } = Astro.props
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
<dialog
|
|
15
|
-
class:list={["ui-dialog ui-card ui-elevated", className]}
|
|
16
|
-
closedby={closedby}
|
|
17
|
-
{...rest}
|
|
18
|
-
>
|
|
19
|
-
{
|
|
20
|
-
Astro.slots.has("header") && (
|
|
21
|
-
<hgroup>
|
|
22
|
-
<slot name="header" />
|
|
23
|
-
</hgroup>
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
{
|
|
27
|
-
Astro.slots.has("content") && (
|
|
28
|
-
<div class="ui-content">
|
|
29
|
-
<slot name="content" />
|
|
30
|
-
</div>
|
|
31
|
-
)
|
|
32
|
-
}
|
|
33
|
-
<slot />
|
|
34
|
-
{
|
|
35
|
-
Astro.slots.has("actions") && (
|
|
36
|
-
<div class:list={["ui-actions", actionsAlign && `ui-align-${actionsAlign}`]}>
|
|
37
|
-
<slot name="actions" />
|
|
38
|
-
</div>
|
|
39
|
-
)
|
|
40
|
-
}
|
|
41
|
-
</dialog>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
actionsAlign?: "start" | "end"
|
|
5
|
+
class?: string
|
|
6
|
+
closedby?: "any" | "closerequest" | "none"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const title = "Dialog"
|
|
10
|
+
|
|
11
|
+
const { actionsAlign, class: className, closedby, ...rest } = Astro.props
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<dialog
|
|
15
|
+
class:list={["ui-dialog ui-card ui-elevated", className]}
|
|
16
|
+
closedby={closedby}
|
|
17
|
+
{...rest}
|
|
18
|
+
>
|
|
19
|
+
{
|
|
20
|
+
Astro.slots.has("header") && (
|
|
21
|
+
<hgroup>
|
|
22
|
+
<slot name="header" />
|
|
23
|
+
</hgroup>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
{
|
|
27
|
+
Astro.slots.has("content") && (
|
|
28
|
+
<div class="ui-content">
|
|
29
|
+
<slot name="content" />
|
|
30
|
+
</div>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
<slot />
|
|
34
|
+
{
|
|
35
|
+
Astro.slots.has("actions") && (
|
|
36
|
+
<div class:list={["ui-actions", actionsAlign && `ui-align-${actionsAlign}`]}>
|
|
37
|
+
<slot name="actions" />
|
|
38
|
+
</div>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
</dialog>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
class?: string
|
|
5
|
-
variant?: "tonal" | "filled" | "primary"
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const title = "Divider"
|
|
9
|
-
|
|
10
|
-
const { class: className, variant, ...rest } = Astro.props
|
|
11
|
-
const variantClass = variant ? `border-${variant}` : ""
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
<hr
|
|
15
|
-
class:list={["ui-divider", className, variantClass && `ui-${variantClass}`]}
|
|
16
|
-
{...rest}
|
|
17
|
-
/>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
class?: string
|
|
5
|
+
variant?: "tonal" | "filled" | "primary"
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const title = "Divider"
|
|
9
|
+
|
|
10
|
+
const { class: className, variant, ...rest } = Astro.props
|
|
11
|
+
const variantClass = variant ? `border-${variant}` : ""
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<hr
|
|
15
|
+
class:list={["ui-divider", className, variantClass && `ui-${variantClass}`]}
|
|
16
|
+
{...rest}
|
|
17
|
+
/>
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
backdrop?: "transparent" | "blurred"
|
|
5
|
-
class?: string
|
|
6
|
-
closedby?: "any" | "closerequest" | "none"
|
|
7
|
-
id?: string
|
|
8
|
-
scrollLock?: boolean
|
|
9
|
-
side?: "inline-start" | "inline-end" | "block-start" | "block-end"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const title = "Drawer"
|
|
13
|
-
|
|
14
|
-
const {
|
|
15
|
-
backdrop = "blurred",
|
|
16
|
-
class: className,
|
|
17
|
-
closedby = "any",
|
|
18
|
-
id,
|
|
19
|
-
scrollLock = true,
|
|
20
|
-
side = "inline-start",
|
|
21
|
-
...rest
|
|
22
|
-
} = Astro.props
|
|
23
|
-
|
|
24
|
-
const { $id } = Astro.locals
|
|
25
|
-
const drawerId = id || $id("drawer")
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
<dialog
|
|
29
|
-
closedby={closedby}
|
|
30
|
-
class:list={[
|
|
31
|
-
"ui-drawer",
|
|
32
|
-
side && `ui-${side}`,
|
|
33
|
-
{
|
|
34
|
-
"ui-backdrop-transparent": backdrop === "transparent",
|
|
35
|
-
"ui-scroll-lock": scrollLock,
|
|
36
|
-
},
|
|
37
|
-
className,
|
|
38
|
-
]}
|
|
39
|
-
id={drawerId}
|
|
40
|
-
{...rest}
|
|
41
|
-
>
|
|
42
|
-
{Astro.slots.has("header") && <slot name="header" />}
|
|
43
|
-
|
|
44
|
-
<div class="ui-content">
|
|
45
|
-
<slot name="content" />
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
{Astro.slots.has("footer") && <slot name="footer" />}
|
|
49
|
-
</dialog>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
backdrop?: "transparent" | "blurred"
|
|
5
|
+
class?: string
|
|
6
|
+
closedby?: "any" | "closerequest" | "none"
|
|
7
|
+
id?: string
|
|
8
|
+
scrollLock?: boolean
|
|
9
|
+
side?: "inline-start" | "inline-end" | "block-start" | "block-end"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const title = "Drawer"
|
|
13
|
+
|
|
14
|
+
const {
|
|
15
|
+
backdrop = "blurred",
|
|
16
|
+
class: className,
|
|
17
|
+
closedby = "any",
|
|
18
|
+
id,
|
|
19
|
+
scrollLock = true,
|
|
20
|
+
side = "inline-start",
|
|
21
|
+
...rest
|
|
22
|
+
} = Astro.props
|
|
23
|
+
|
|
24
|
+
const { $id } = Astro.locals
|
|
25
|
+
const drawerId = id || $id("drawer")
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
<dialog
|
|
29
|
+
closedby={closedby}
|
|
30
|
+
class:list={[
|
|
31
|
+
"ui-drawer",
|
|
32
|
+
side && `ui-${side}`,
|
|
33
|
+
{
|
|
34
|
+
"ui-backdrop-transparent": backdrop === "transparent",
|
|
35
|
+
"ui-scroll-lock": scrollLock,
|
|
36
|
+
},
|
|
37
|
+
className,
|
|
38
|
+
]}
|
|
39
|
+
id={drawerId}
|
|
40
|
+
{...rest}
|
|
41
|
+
>
|
|
42
|
+
{Astro.slots.has("header") && <slot name="header" />}
|
|
43
|
+
|
|
44
|
+
<div class="ui-content">
|
|
45
|
+
<slot name="content" />
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
{Astro.slots.has("footer") && <slot name="footer" />}
|
|
49
|
+
</dialog>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
class?: string
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const title = "Drawer Footer"
|
|
8
|
-
|
|
9
|
-
const { class: className, ...rest } = Astro.props
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
<div class:list={["ui-footer", className]} {...rest}>
|
|
13
|
-
<slot />
|
|
14
|
-
</div>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
class?: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const title = "Drawer Footer"
|
|
8
|
+
|
|
9
|
+
const { class: className, ...rest } = Astro.props
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<div class:list={["ui-footer", className]} {...rest}>
|
|
13
|
+
<slot />
|
|
14
|
+
</div>
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
---
|
|
2
|
-
import IconButton from "../IconButton/IconButton.astro"
|
|
3
|
-
|
|
4
|
-
type Props = {
|
|
5
|
-
[key: string]: any
|
|
6
|
-
class?: string
|
|
7
|
-
heading?: string
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const title = "Drawer Header"
|
|
11
|
-
|
|
12
|
-
const { class: className, heading, ...rest } = Astro.props
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
<div class:list={["ui-header", className]} {...rest}>
|
|
16
|
-
{heading && <span>{heading}</span>}
|
|
17
|
-
<slot />
|
|
18
|
-
<IconButton onclick="this.closest('dialog').close()" title="Close">
|
|
19
|
-
<svg
|
|
20
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
-
width="32"
|
|
22
|
-
height="32"
|
|
23
|
-
viewBox="0 0 32 32"
|
|
24
|
-
>
|
|
25
|
-
<path
|
|
26
|
-
fill="currentColor"
|
|
27
|
-
d="M26.29 4.293a1 1 0 1 1 1.414 1.414L17.413 16l10.291 10.29a1 1 0 1 1-1.414 1.414L16 17.413L5.707 27.704a1 1 0 0 1-1.414-1.414L14.585 16L4.293 5.707a1 1 0 0 1 1.414-1.414L16 14.584z"
|
|
28
|
-
></path>
|
|
29
|
-
</svg>
|
|
30
|
-
</IconButton>
|
|
31
|
-
</div>
|
|
1
|
+
---
|
|
2
|
+
import IconButton from "../IconButton/IconButton.astro"
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
[key: string]: any
|
|
6
|
+
class?: string
|
|
7
|
+
heading?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const title = "Drawer Header"
|
|
11
|
+
|
|
12
|
+
const { class: className, heading, ...rest } = Astro.props
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<div class:list={["ui-header", className]} {...rest}>
|
|
16
|
+
{heading && <span>{heading}</span>}
|
|
17
|
+
<slot />
|
|
18
|
+
<IconButton onclick="this.closest('dialog').close()" title="Close">
|
|
19
|
+
<svg
|
|
20
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
+
width="32"
|
|
22
|
+
height="32"
|
|
23
|
+
viewBox="0 0 32 32"
|
|
24
|
+
>
|
|
25
|
+
<path
|
|
26
|
+
fill="currentColor"
|
|
27
|
+
d="M26.29 4.293a1 1 0 1 1 1.414 1.414L17.413 16l10.291 10.29a1 1 0 1 1-1.414 1.414L16 17.413L5.707 27.704a1 1 0 0 1-1.414-1.414L14.585 16L4.293 5.707a1 1 0 0 1 1.414-1.414L16 14.584z"
|
|
28
|
+
></path>
|
|
29
|
+
</svg>
|
|
30
|
+
</IconButton>
|
|
31
|
+
</div>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
class?: string
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const title = "Field Description"
|
|
8
|
-
|
|
9
|
-
const { class: className, ...rest } = Astro.props
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
<!-- prettier-ignore -->
|
|
13
|
-
<p class:list={["ui-field-description", className]} {...rest}><slot /></p>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
class?: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const title = "Field Description"
|
|
8
|
+
|
|
9
|
+
const { class: className, ...rest } = Astro.props
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- prettier-ignore -->
|
|
13
|
+
<p class:list={["ui-field-description", className]} {...rest}><slot /></p>
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
class?: string
|
|
5
|
-
direction?: "row" | "column"
|
|
6
|
-
name?: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const title = "Field Group"
|
|
10
|
-
|
|
11
|
-
const { class: className, direction, name, ...rest } = Astro.props
|
|
12
|
-
|
|
13
|
-
const originalName = Astro.locals.currentFieldName
|
|
14
|
-
if (name) {
|
|
15
|
-
Astro.locals.currentFieldName = name
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
let html = ""
|
|
19
|
-
try {
|
|
20
|
-
html = await Astro.slots.render("default")
|
|
21
|
-
} finally {
|
|
22
|
-
Astro.locals.currentFieldName = originalName
|
|
23
|
-
}
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
<div
|
|
27
|
-
class:list={["ui-field-group", direction && `ui-${direction}`, className]}
|
|
28
|
-
{...rest}
|
|
29
|
-
role="group"
|
|
30
|
-
set:html={html}
|
|
31
|
-
/>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
class?: string
|
|
5
|
+
direction?: "row" | "column"
|
|
6
|
+
name?: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const title = "Field Group"
|
|
10
|
+
|
|
11
|
+
const { class: className, direction, name, ...rest } = Astro.props
|
|
12
|
+
|
|
13
|
+
const originalName = Astro.locals.currentFieldName
|
|
14
|
+
if (name) {
|
|
15
|
+
Astro.locals.currentFieldName = name
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let html = ""
|
|
19
|
+
try {
|
|
20
|
+
html = await Astro.slots.render("default")
|
|
21
|
+
} finally {
|
|
22
|
+
Astro.locals.currentFieldName = originalName
|
|
23
|
+
}
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
<div
|
|
27
|
+
class:list={["ui-field-group", direction && `ui-${direction}`, className]}
|
|
28
|
+
{...rest}
|
|
29
|
+
role="group"
|
|
30
|
+
set:html={html}
|
|
31
|
+
/>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
as?: "legend" | "p" | string
|
|
5
|
-
class?: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const title = "Field Legend"
|
|
9
|
-
|
|
10
|
-
const { as: Tag = "legend", class: className, ...rest } = Astro.props
|
|
11
|
-
const isLegend = Tag === "legend"
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
<!-- prettier-ignore -->
|
|
15
|
-
<Tag class:list={[{ "ui-legend": !isLegend }, className]} {...rest}><slot /></Tag>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
as?: "legend" | "p" | string
|
|
5
|
+
class?: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const title = "Field Legend"
|
|
9
|
+
|
|
10
|
+
const { as: Tag = "legend", class: className, ...rest } = Astro.props
|
|
11
|
+
const isLegend = Tag === "legend"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<!-- prettier-ignore -->
|
|
15
|
+
<Tag class:list={[{ "ui-legend": !isLegend }, className]} {...rest}><slot /></Tag>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
as?: "fieldset" | "div" | string
|
|
5
|
-
class?: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const title = "Field Set"
|
|
9
|
-
|
|
10
|
-
const { as: Tag = "fieldset", class: className, ...rest } = Astro.props
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
<Tag class:list={["ui-fieldset", className]} {...rest}>
|
|
14
|
-
<slot />
|
|
15
|
-
</Tag>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
as?: "fieldset" | "div" | string
|
|
5
|
+
class?: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const title = "Field Set"
|
|
9
|
+
|
|
10
|
+
const { as: Tag = "fieldset", class: className, ...rest } = Astro.props
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<Tag class:list={["ui-fieldset", className]} {...rest}>
|
|
14
|
+
<slot />
|
|
15
|
+
</Tag>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
as?: "form" | "div" | string
|
|
5
|
-
class?: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const title = "Form"
|
|
9
|
-
|
|
10
|
-
const { as: Tag = "form", class: className, ...rest } = Astro.props
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
<Tag class:list={["ui-form", className]} {...rest}>
|
|
14
|
-
<slot />
|
|
15
|
-
</Tag>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
as?: "form" | "div" | string
|
|
5
|
+
class?: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const title = "Form"
|
|
9
|
+
|
|
10
|
+
const { as: Tag = "form", class: className, ...rest } = Astro.props
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<Tag class:list={["ui-form", className]} {...rest}>
|
|
14
|
+
<slot />
|
|
15
|
+
</Tag>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
[key: string]: any
|
|
4
|
-
as?: "a" | "button" | string
|
|
5
|
-
class?: string
|
|
6
|
-
color?: "critical" | "primary"
|
|
7
|
-
href?: string
|
|
8
|
-
size?: "small"
|
|
9
|
-
variant?: "outlined" | "tonal" | "filled"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const title = "Icon Button"
|
|
13
|
-
|
|
14
|
-
const {
|
|
15
|
-
as: Tag = Astro.props.href ? "a" : "button",
|
|
16
|
-
class: className,
|
|
17
|
-
color,
|
|
18
|
-
href,
|
|
19
|
-
size,
|
|
20
|
-
variant,
|
|
21
|
-
...rest
|
|
22
|
-
} = Astro.props
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
<!-- prettier-ignore -->
|
|
26
|
-
<Tag class:list={["ui-icon-button", size && `ui-${size}`, variant && `ui-${variant}`, color && `ui-${color}`, className]} href={href} {...rest}><slot /></Tag>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
[key: string]: any
|
|
4
|
+
as?: "a" | "button" | string
|
|
5
|
+
class?: string
|
|
6
|
+
color?: "critical" | "primary"
|
|
7
|
+
href?: string
|
|
8
|
+
size?: "small"
|
|
9
|
+
variant?: "outlined" | "tonal" | "filled"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const title = "Icon Button"
|
|
13
|
+
|
|
14
|
+
const {
|
|
15
|
+
as: Tag = Astro.props.href ? "a" : "button",
|
|
16
|
+
class: className,
|
|
17
|
+
color,
|
|
18
|
+
href,
|
|
19
|
+
size,
|
|
20
|
+
variant,
|
|
21
|
+
...rest
|
|
22
|
+
} = Astro.props
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<!-- prettier-ignore -->
|
|
26
|
+
<Tag class:list={["ui-icon-button", size && `ui-${size}`, variant && `ui-${variant}`, color && `ui-${color}`, className]} href={href} {...rest}><slot /></Tag>
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
---
|
|
2
|
-
type Props = {
|
|
3
|
-
bordered?: boolean
|
|
4
|
-
dense?: boolean
|
|
5
|
-
gutterless?: boolean
|
|
6
|
-
variant?: "default" | "tonal" | "transparent"
|
|
7
|
-
[key: string]: any
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const title = "List"
|
|
11
|
-
|
|
12
|
-
const {
|
|
13
|
-
bordered,
|
|
14
|
-
class: className,
|
|
15
|
-
dense,
|
|
16
|
-
gutterless,
|
|
17
|
-
variant,
|
|
18
|
-
...rest
|
|
19
|
-
} = Astro.props
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
<ul
|
|
23
|
-
class:list={[
|
|
24
|
-
"ui-list",
|
|
25
|
-
{
|
|
26
|
-
"ui-bordered": bordered,
|
|
27
|
-
"ui-dense": dense,
|
|
28
|
-
"ui-gutterless": gutterless,
|
|
29
|
-
},
|
|
30
|
-
variant && `ui-${variant}`,
|
|
31
|
-
className,
|
|
32
|
-
]}
|
|
33
|
-
{...rest}
|
|
34
|
-
>
|
|
35
|
-
<slot />
|
|
36
|
-
</ul>
|
|
1
|
+
---
|
|
2
|
+
type Props = {
|
|
3
|
+
bordered?: boolean
|
|
4
|
+
dense?: boolean
|
|
5
|
+
gutterless?: boolean
|
|
6
|
+
variant?: "default" | "tonal" | "transparent"
|
|
7
|
+
[key: string]: any
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const title = "List"
|
|
11
|
+
|
|
12
|
+
const {
|
|
13
|
+
bordered,
|
|
14
|
+
class: className,
|
|
15
|
+
dense,
|
|
16
|
+
gutterless,
|
|
17
|
+
variant,
|
|
18
|
+
...rest
|
|
19
|
+
} = Astro.props
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
<ul
|
|
23
|
+
class:list={[
|
|
24
|
+
"ui-list",
|
|
25
|
+
{
|
|
26
|
+
"ui-bordered": bordered,
|
|
27
|
+
"ui-dense": dense,
|
|
28
|
+
"ui-gutterless": gutterless,
|
|
29
|
+
},
|
|
30
|
+
variant && `ui-${variant}`,
|
|
31
|
+
className,
|
|
32
|
+
]}
|
|
33
|
+
{...rest}
|
|
34
|
+
>
|
|
35
|
+
<slot />
|
|
36
|
+
</ul>
|