@viraui/react 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalog.json +33 -3
- package/dist/components/avatar/avatar.css +1 -1
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/avatar/avatar.module.js +3 -3
- package/dist/components/avatar-group/avatar-group.css +1 -1
- package/dist/components/avatar-group/avatar-group.js +3 -2
- package/dist/components/avatar-group/avatar-group.module.js +5 -5
- package/dist/components/basic-input/basic-input.css +1 -1
- package/dist/components/basic-input/basic-input.js +1 -2
- package/dist/components/basic-input/basic-input.module.js +1 -1
- package/dist/components/basic-input/field-helper-copy.d.ts +1 -1
- package/dist/components/basic-input/field-helper-copy.js +0 -1
- package/dist/components/basic-input/field-label.css +1 -1
- package/dist/components/basic-input/field-label.js +1 -2
- package/dist/components/basic-input/field-label.module.js +1 -1
- package/dist/components/basic-input/input-control-group.js +0 -1
- package/dist/components/button/button.css +1 -1
- package/dist/components/button/button.d.ts +13 -7
- package/dist/components/button/button.guide.json +7 -5
- package/dist/components/button/button.js +12 -11
- package/dist/components/button/button.module.js +3 -3
- package/dist/components/checkbox/checkbox-group.d.ts +12 -0
- package/dist/components/checkbox/checkbox-group.js +15 -0
- package/dist/components/checkbox/checkbox.css +1 -1
- package/dist/components/checkbox/checkbox.d.ts +6 -21
- package/dist/components/checkbox/checkbox.guide.json +10 -5
- package/dist/components/checkbox/checkbox.js +46 -60
- package/dist/components/checkbox/checkbox.module.js +7 -6
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/chip/chip.css +1 -1
- package/dist/components/chip/chip.js +1 -3
- package/dist/components/chip/chip.module.js +4 -4
- package/dist/components/clamp-text/clamp-text.css +1 -1
- package/dist/components/clamp-text/clamp-text.js +1 -1
- package/dist/components/clamp-text/clamp-text.module.js +1 -1
- package/dist/components/dialog/dialog-close.d.ts +15 -0
- package/dist/components/dialog/dialog-close.js +9 -0
- package/dist/components/dialog/dialog-sheet.d.ts +66 -0
- package/dist/components/dialog/dialog-sheet.js +80 -0
- package/dist/components/dialog/dialog-trigger.d.ts +13 -0
- package/dist/components/dialog/dialog-trigger.js +9 -0
- package/dist/components/dialog/dialog.css +1 -0
- package/dist/components/dialog/dialog.d.ts +21 -0
- package/dist/components/dialog/dialog.guide.json +26 -0
- package/dist/components/dialog/dialog.js +18 -0
- package/dist/components/dialog/dialog.module.js +13 -0
- package/dist/components/dialog/index.d.ts +8 -0
- package/dist/components/elevator/elevator.js +4 -4
- package/dist/components/fieldset/fieldset.d.ts +35 -0
- package/dist/components/fieldset/fieldset.guide.json +28 -0
- package/dist/components/fieldset/fieldset.js +30 -0
- package/dist/components/fieldset/index.d.ts +2 -0
- package/dist/components/icon/icon.css +1 -1
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/icon/icon.module.js +1 -1
- package/dist/components/icon-button/icon-button.d.ts +1 -1
- package/dist/components/icon-button/icon-button.guide.json +1 -1
- package/dist/components/icon-button/icon-button.js +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/linear-progress/linear-progress.css +1 -1
- package/dist/components/linear-progress/linear-progress.js +1 -2
- package/dist/components/linear-progress/linear-progress.module.js +4 -4
- package/dist/components/masonry/masonry-item.js +1 -2
- package/dist/components/masonry/masonry.css +1 -1
- package/dist/components/masonry/masonry.js +3 -4
- package/dist/components/masonry/masonry.module.js +2 -2
- package/dist/components/progressive-blur/index.d.ts +2 -0
- package/dist/components/progressive-blur/progressive-blur.css +1 -0
- package/dist/components/progressive-blur/progressive-blur.d.ts +38 -0
- package/dist/components/progressive-blur/progressive-blur.guide.json +25 -0
- package/dist/components/progressive-blur/progressive-blur.js +39 -0
- package/dist/components/progressive-blur/progressive-blur.module.js +6 -0
- package/dist/components/progressive-blur/progressive-blur.utils.d.ts +14 -0
- package/dist/components/progressive-blur/progressive-blur.utils.js +40 -0
- package/dist/components/radio/radio-group.d.ts +5 -38
- package/dist/components/radio/radio-group.js +12 -50
- package/dist/components/radio/radio.css +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.guide.json +12 -8
- package/dist/components/radio/radio.js +32 -30
- package/dist/components/radio/radio.module.js +3 -5
- package/dist/components/select/select-group.js +2 -2
- package/dist/components/select/select-indicator-slot.js +0 -1
- package/dist/components/select/select-option.d.ts +15 -2
- package/dist/components/select/select-option.js +34 -21
- package/dist/components/select/select-separator.js +1 -2
- package/dist/components/select/select.css +1 -1
- package/dist/components/select/select.d.ts +7 -1
- package/dist/components/select/select.guide.json +9 -3
- package/dist/components/select/select.js +6 -5
- package/dist/components/select/select.module.js +17 -15
- package/dist/components/skeleton/skeleton.css +1 -1
- package/dist/components/skeleton/skeleton.js +2 -2
- package/dist/components/skeleton/skeleton.module.js +2 -2
- package/dist/components/slider/slider-control.js +0 -1
- package/dist/components/slider/slider.css +1 -1
- package/dist/components/slider/slider.js +2 -4
- package/dist/components/slider/slider.module.js +9 -8
- package/dist/components/spinner/spinner.css +1 -1
- package/dist/components/spinner/spinner.js +4 -4
- package/dist/components/spinner/spinner.module.js +3 -3
- package/dist/components/stack/stack.css +1 -1
- package/dist/components/stack/stack.d.ts +2 -2
- package/dist/components/stack/stack.js +1 -2
- package/dist/components/stack/stack.module.js +1 -1
- package/dist/components/static-noise/index.d.ts +2 -0
- package/dist/components/static-noise/static-noise.css +1 -0
- package/dist/components/static-noise/static-noise.d.ts +37 -0
- package/dist/components/static-noise/static-noise.guide.json +25 -0
- package/dist/components/static-noise/static-noise.js +46 -0
- package/dist/components/static-noise/static-noise.module.js +6 -0
- package/dist/components/surface/surface-radius-context.d.ts +45 -0
- package/dist/components/surface/surface-radius-context.js +81 -0
- package/dist/components/surface/surface.css +1 -1
- package/dist/components/surface/surface.d.ts +11 -5
- package/dist/components/surface/surface.guide.json +12 -4
- package/dist/components/surface/surface.js +26 -7
- package/dist/components/surface/surface.module.js +1 -4
- package/dist/components/switch/switch.css +1 -1
- package/dist/components/switch/switch.js +32 -30
- package/dist/components/switch/switch.module.js +4 -3
- package/dist/components/tabs/index.d.ts +6 -0
- package/dist/components/tabs/tabs-indicator.d.ts +9 -0
- package/dist/components/tabs/tabs-indicator.js +16 -0
- package/dist/components/tabs/tabs-list.d.ts +12 -0
- package/dist/components/tabs/tabs-list.js +29 -0
- package/dist/components/tabs/tabs-panel.d.ts +11 -0
- package/dist/components/tabs/tabs-panel.js +13 -0
- package/dist/components/tabs/tabs-tab.d.ts +24 -0
- package/dist/components/tabs/tabs-tab.js +24 -0
- package/dist/components/tabs/tabs-viewport.d.ts +8 -0
- package/dist/components/tabs/tabs-viewport.js +11 -0
- package/dist/components/tabs/tabs.css +1 -0
- package/dist/components/tabs/tabs.d.ts +31 -0
- package/dist/components/tabs/tabs.guide.json +23 -0
- package/dist/components/tabs/tabs.js +30 -0
- package/dist/components/tabs/tabs.module.js +11 -0
- package/dist/components/text/text.css +1 -1
- package/dist/components/text/text.d.ts +2 -2
- package/dist/components/text/text.js +3 -4
- package/dist/components/text/text.module.js +1 -1
- package/dist/components/textarea/textarea.css +1 -1
- package/dist/components/textarea/textarea.guide.json +8 -3
- package/dist/components/textarea/textarea.js +2 -4
- package/dist/components/textarea/textarea.module.js +4 -3
- package/dist/components/textfield/textfield.css +1 -1
- package/dist/components/textfield/textfield.guide.json +9 -3
- package/dist/components/textfield/textfield.js +2 -4
- package/dist/components/textfield/textfield.module.js +6 -5
- package/dist/components/title/title.css +1 -1
- package/dist/components/title/title.js +3 -4
- package/dist/components/title/title.module.js +1 -1
- package/dist/core/clsx.d.ts +1 -0
- package/dist/core/clsx.js +36 -0
- package/dist/core/elevation/get-elevation-props.js +2 -2
- package/dist/core/props/intrinsic-vira-props.d.ts +3 -3
- package/dist/index.js +10 -1
- package/dist/internal-icons/icon-registry.d.ts +4 -1
- package/dist/internal-icons/icon-registry.js +9 -0
- package/dist/internal-icons/icons/duo/ArrowDown.js +1 -1
- package/dist/internal-icons/icons/duo/ArrowDownLeft.js +1 -1
- package/dist/internal-icons/icons/duo/ArrowDownRight.js +1 -1
- package/dist/internal-icons/icons/duo/ArrowLeft.js +1 -1
- package/dist/internal-icons/icons/duo/ArrowRight.js +1 -1
- package/dist/internal-icons/icons/duo/ArrowUp.js +1 -1
- package/dist/internal-icons/icons/duo/ArrowUpLeft.js +1 -1
- package/dist/internal-icons/icons/duo/ArrowUpRight.js +1 -1
- package/dist/internal-icons/icons/duo/ChevronExpandY.js +2 -2
- package/dist/internal-icons/icons/duo/CircleCheck.d.ts +7 -0
- package/dist/internal-icons/icons/duo/CircleCheck.js +13 -0
- package/dist/internal-icons/icons/duo/Duplicate.d.ts +7 -0
- package/dist/internal-icons/icons/duo/Duplicate.js +13 -0
- package/dist/internal-icons/icons/duo/RefreshAnticlockwise.js +1 -1
- package/dist/internal-icons/icons/duo/ShieldCheck.d.ts +7 -0
- package/dist/internal-icons/icons/duo/ShieldCheck.js +13 -0
- package/dist/internal-icons/icons/duo/index.d.ts +3 -0
- package/dist/internal-icons/icons/duo/index.js +3 -0
- package/dist/preflight-surface.json +15 -1
- package/dist/preflight.css +1 -1
- package/dist/theme-surface.json +0 -5
- package/package.json +4 -7
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import './tabs.css';
|
|
2
|
+
import { clsx } from "../../core/clsx.js";
|
|
3
|
+
import { Stack } from "../stack/stack.js";
|
|
4
|
+
import tabs_module_default from "./tabs.module.js";
|
|
5
|
+
import { TabsList } from "./tabs-list.js";
|
|
6
|
+
import { TabsPanel } from "./tabs-panel.js";
|
|
7
|
+
import { TabsTab } from "./tabs-tab.js";
|
|
8
|
+
import { TabsViewport } from "./tabs-viewport.js";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
import "react";
|
|
11
|
+
import { Tabs } from "@base-ui/react/tabs";
|
|
12
|
+
//#region src/components/tabs/tabs.tsx
|
|
13
|
+
var TabsRootComponent = ({ children, className, listAlignment = "start", ...props }) => /* @__PURE__ */ jsx(Tabs.Root, {
|
|
14
|
+
render: /* @__PURE__ */ jsx(Stack, {
|
|
15
|
+
hAlign: listAlignment,
|
|
16
|
+
vAlign: "start",
|
|
17
|
+
fillChildren: false,
|
|
18
|
+
className: clsx(tabs_module_default.Tabs, className)
|
|
19
|
+
}),
|
|
20
|
+
...props,
|
|
21
|
+
children
|
|
22
|
+
});
|
|
23
|
+
var Tabs$1 = Object.assign(TabsRootComponent, {
|
|
24
|
+
List: TabsList,
|
|
25
|
+
Tab: TabsTab,
|
|
26
|
+
Viewport: TabsViewport,
|
|
27
|
+
Panel: TabsPanel
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { Tabs$1 as Tabs };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var tabs_module_default = {
|
|
2
|
+
Tabs: "viraui__tabs-module__Tabs_AwbZZ",
|
|
3
|
+
Viewport: "viraui__tabs-module__Viewport_15X1I",
|
|
4
|
+
List: "viraui__tabs-module__List_XJorr",
|
|
5
|
+
Indicator: "viraui__tabs-module__Indicator_UyNUn",
|
|
6
|
+
Item: "viraui__tabs-module__Item_XZ86Z",
|
|
7
|
+
Label: "viraui__tabs-module__Label_5-8-Y",
|
|
8
|
+
Panel: "viraui__tabs-module__Panel_vkCFI"
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { tabs_module_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.viraui__text-module__Text_bS8kv{--text-medium:clamp(var(--font-scale-body-medium),calc(var(--font-scale-body-medium) + var(--font-scale-body-x-small) / 12 + 0.24cqi),calc(var(--font-scale-body-medium) + var(--font-scale-body-x-small) / 3));--text-align:start;--text-max-width:none;--text-white-space:normal;--text-padding-inline-start:0;--text-padding-inline-end:0;--text-padding-block-start:0;--text-padding-block-end:0;--text-font-family:var(--font-family-body);--text-font-size:clamp(var(--font-scale-body-small),var(--text-medium),var(--font-scale-body-medium));--text-font-weight:400;--text-font-width:100;--text-font-opsz:16;--text-line-height:var(--font-leading-standard);margin:0;min-inline-size:0;max-inline-size:var(--text-max-width);font-family:var(--text-font-family);font-size:var(--text-font-size);line-height:var(--text-line-height);text-align:var(--text-align);white-space:var(--text-white-space);word-break:break-word;font-optical-sizing:auto;font-variation-settings:"wght" var(--text-font-weight),"wdth" var(--text-font-width),"opsz" var(--text-font-opsz);text-box:var(--text-trim) var(--text-trim-type);&[data-text-balanced=true]{text-wrap:balance}&[data-text-selection=false]{-webkit-user-select:none;user-select:none}&[data-text-has-padding=true]{padding:var(--text-padding-block-start) var(--text-padding-inline-end) var(--text-padding-block-end) var(--text-padding-inline-start)}&[data-text-family=mono]{--text-font-family:var(--font-family-mono)}&[data-text-size=x-large]{--text-font-size:clamp(var(--font-scale-body-large),calc(var(--text-medium) * pow(var(--font-heading-typescale), 2)),var(--font-scale-body-x-large))}&[data-text-size=large]{--text-font-size:clamp(var(--font-scale-body-medium),calc(var(--text-medium) * pow(var(--font-heading-typescale), 1)),var(--font-scale-body-large))}&[data-text-size=medium]{--text-font-size:clamp(var(--font-scale-body-small),var(--text-medium),var(--font-scale-body-medium))}&[data-text-size=small]{--text-font-size:clamp(var(--font-scale-body-x-small),calc(var(--text-medium) * pow(var(--font-heading-typescale), -0.1)),var(--font-scale-body-small))}&[data-text-size=x-small]{--text-font-size:var(--font-scale-body-x-small)}&[data-text-weight=light]{--text-font-weight:200}&[data-text-weight=semibold]{--text-font-weight:600}&[data-text-weight=bold]{--text-font-weight:800}&[data-text-tone=muted]{color:var(--global-muted)}&[data-text-tone=interactive]{color:var(--global-interactive-text)}&[data-text-tone=positive]{color:var(--highlight-green)}&[data-text-tone=informative]{color:var(--highlight-blue)}&[data-text-tone=danger]{color:var(--highlight-red)}&[data-text-tone=warning]{color:var(--highlight-yellow)}&[data-text-has-literal-color=true]{color:var(--text-literal-color)}&[data-text-line-height=none]{--text-line-height:0}&[data-text-line-height=x-small]{--text-line-height:var(--font-leading-x-small)}&[data-text-line-height=small]{--text-line-height:var(--font-leading-small)}&[data-text-line-height=large]{--text-line-height:var(--font-leading-large)}}
|
|
@@ -28,7 +28,7 @@ export type TextProps = React.ComponentPropsWithoutRef<'span'> & IntrinsicViraPr
|
|
|
28
28
|
/**
|
|
29
29
|
* Selects a semantic body typography size from the active theme scale.
|
|
30
30
|
*
|
|
31
|
-
* @default '
|
|
31
|
+
* @default 'medium'
|
|
32
32
|
*/
|
|
33
33
|
size?: 'x-large' | 'large' | 'medium' | 'small' | 'x-small';
|
|
34
34
|
/**
|
|
@@ -112,7 +112,7 @@ export type TextProps = React.ComponentPropsWithoutRef<'span'> & IntrinsicViraPr
|
|
|
112
112
|
/**
|
|
113
113
|
* Selects the `text-box` trim basis when `trim` is active.
|
|
114
114
|
*
|
|
115
|
-
* @default '
|
|
115
|
+
* @default 'cap alphabetic'
|
|
116
116
|
*/
|
|
117
117
|
trimType?: string;
|
|
118
118
|
/**
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import './text.css';
|
|
2
|
+
import { clsx } from "../../core/clsx.js";
|
|
3
3
|
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
4
4
|
import { resolveAxisPadding } from "../../core/styles/resolve-axis-padding.js";
|
|
5
5
|
import text_module_default from "./text.module.js";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
6
|
import { useRender } from "@base-ui/react/use-render";
|
|
8
7
|
//#region src/components/text/text.tsx
|
|
9
8
|
var Text = ({ align = "start", balanced = false, selection = true, className, color, family = "body", fontWidth, hPadding, lineHeight = "standard", maxWidth, opticalSize, ref, render, size = "medium", style, tone, trim = "both", trimType = "cap alphabetic", vPadding, weight = "regular", whiteSpace = "normal", ...otherProps }) => {
|
|
@@ -17,8 +16,8 @@ var Text = ({ align = "start", balanced = false, selection = true, className, co
|
|
|
17
16
|
"--text-trim": trim ? `trim-${trim}` : "initial",
|
|
18
17
|
"--text-trim-type": trim ? trimType : "initial",
|
|
19
18
|
...typeof weight === "number" ? { "--text-font-weight": weight } : {},
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
"--text-font-width": fontWidth,
|
|
20
|
+
"--text-font-opsz": opticalSize,
|
|
22
21
|
...resolveAxisPadding(hPadding, "--text-padding-inline-start", "--text-padding-inline-end"),
|
|
23
22
|
...resolveAxisPadding(vPadding, "--text-padding-block-start", "--text-padding-block-end"),
|
|
24
23
|
...style
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.viraui__textarea-module__Textarea_mtOUG{--textarea-min-block-size:calc(var(--space-x-large) * 2);--textarea-padding-block:var(--space-small);--textarea-input-border-radius:var(--radius-small);--field-label-padding-inline:calc(var(--textarea-input-border-radius) / 2);inline-size:100%;&:has([required]) .viraui__textarea-module__Label_5dOso:after{content:" *";color:var(--highlight-red)}}.viraui__textarea-module__CustomBasicInput_Ce7yA{--basic-input-border-radius:var(--textarea-input-border-radius);border:1px solid var(--global-contrast);min-block-size:var(--textarea-min-block-size);padding-block:var(--textarea-padding-block);line-height:1.4;resize:none;&[data-resize=vertical]{resize:vertical}&[data-resize=both]{resize:both}&[data-invalid]{border-color:var(--highlight-red)}&:disabled,&[data-disabled]{border-color:transparent}}.viraui__textarea-module__Description_er3zI{padding-inline:calc(var(--textarea-input-border-radius) / 2)}
|
|
@@ -4,14 +4,19 @@
|
|
|
4
4
|
"whenToUse": [
|
|
5
5
|
"Multi-line text entry with label, description, and error",
|
|
6
6
|
"Controlled vertical or bidirectional resize",
|
|
7
|
-
"Native textarea attributes through the field control"
|
|
7
|
+
"Native textarea attributes through the field control",
|
|
8
|
+
"One or more Textareas inside Fieldset when they belong to a labeled form section with other fields"
|
|
9
|
+
],
|
|
10
|
+
"whenNotToUse": [
|
|
11
|
+
"Single-line input — use Textfield",
|
|
12
|
+
"Addon slots like Textfield startAddon or endAddon",
|
|
13
|
+
"Wrapping a lone Textarea in Fieldset when its own label is sufficient"
|
|
8
14
|
],
|
|
9
|
-
"whenNotToUse": ["Single-line input — use Textfield", "Addon slots like Textfield startAddon or endAddon"],
|
|
10
15
|
"accessibility": [
|
|
11
16
|
"Associate label with the textarea through the field label pattern",
|
|
12
17
|
"Expose validation and helper copy through description and error slots",
|
|
13
18
|
"Prefer resize modes that do not hide required content from keyboard users"
|
|
14
19
|
],
|
|
15
20
|
"antiPatterns": ["Using Textarea for single-line values", "Expecting unsupported size or variant props"],
|
|
16
|
-
"related": ["Textfield", "Text"]
|
|
21
|
+
"related": ["Fieldset", "Textfield", "Text"]
|
|
17
22
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import './textarea.css';
|
|
2
|
+
import { clsx } from "../../core/clsx.js";
|
|
3
3
|
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
4
4
|
import { Stack } from "../stack/stack.js";
|
|
5
5
|
import { BasicInput } from "../basic-input/basic-input.js";
|
|
6
6
|
import { FieldHelperCopy } from "../basic-input/field-helper-copy.js";
|
|
7
7
|
import { FieldLabel } from "../basic-input/field-label.js";
|
|
8
8
|
import textarea_module_default from "./textarea.module.js";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
10
|
import { Field } from "@base-ui/react/field";
|
|
12
11
|
//#region src/components/textarea/textarea.tsx
|
|
@@ -25,12 +24,11 @@ var Textarea = ({ className, description, dirty, disabled, error, invalid, label
|
|
|
25
24
|
validationMode,
|
|
26
25
|
render: /* @__PURE__ */ jsx(Stack, {
|
|
27
26
|
direction: "column",
|
|
28
|
-
fillChildren: false,
|
|
29
27
|
rowGap: "small"
|
|
30
28
|
}),
|
|
31
29
|
children: [
|
|
32
30
|
label && /* @__PURE__ */ jsx(Field.Label, {
|
|
33
|
-
|
|
31
|
+
className: textarea_module_default.Label,
|
|
34
32
|
children: /* @__PURE__ */ jsx(FieldLabel, { children: label })
|
|
35
33
|
}),
|
|
36
34
|
/* @__PURE__ */ jsx(BasicInput, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
var textarea_module_default = {
|
|
2
|
-
Textarea: "
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Textarea: "viraui__textarea-module__Textarea_mtOUG",
|
|
3
|
+
Label: "viraui__textarea-module__Label_5dOso",
|
|
4
|
+
CustomBasicInput: "viraui__textarea-module__CustomBasicInput_Ce7yA",
|
|
5
|
+
Description: "viraui__textarea-module__Description_er3zI"
|
|
5
6
|
};
|
|
6
7
|
//#endregion
|
|
7
8
|
export { textarea_module_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.viraui__textfield-module__Textfield_o-70A{--input-height:var(--space-x-large);--control-group-background:var(--base-1);--control-group-color:var(--global-foreground);--control-group-border-color:var(--global-contrast);--control-group-border-radius:var(--radius-medium);--field-label-padding-inline:calc(var(--control-group-border-radius) / 2);inline-size:100%;&:has([required]) .viraui__textfield-module__Label_5rjr0:after{content:" *";color:var(--highlight-red)}}.viraui__textfield-module__ControlGroup_2W-OC{box-sizing:border-box;inline-size:100%;min-inline-size:0;block-size:var(--input-height);background:var(--control-group-background);border:1px solid var(--control-group-border-color);border-radius:var(--control-group-border-radius);&:has(.viraui__textfield-module__CustomBasicInput_oHgtd:focus-visible),&:has(.viraui__textfield-module__CustomBasicInput_oHgtd[data-focused]){outline:var(--outline);outline-offset:var(--outline-offset)}&:has(.viraui__textfield-module__CustomBasicInput_oHgtd[data-invalid]){--control-group-border-color:var(--highlight-red);box-shadow:none;outline-color:oklab(from var(--highlight-red) l a b/.5)}&:has(.viraui__textfield-module__CustomBasicInput_oHgtd:disabled),&:has(.viraui__textfield-module__CustomBasicInput_oHgtd[data-disabled]){--control-group-background:var(--global-disabled-background);--control-group-border-color:transparent;box-shadow:none;cursor:not-allowed}&:has(.viraui__textfield-module__Addon_kK1ef[data-position=start])>.viraui__textfield-module__CustomBasicInput_oHgtd{padding-inline-start:var(--space-x-small)}&:has(.viraui__textfield-module__Addon_kK1ef[data-position=end])>.viraui__textfield-module__CustomBasicInput_oHgtd{padding-inline-end:var(--space-x-small)}}.viraui__textfield-module__CustomBasicInput_oHgtd{flex:1 1 auto;min-inline-size:0;block-size:100%;line-height:1.2;border:none;background:transparent;box-shadow:none;border-radius:inherit;&:focus-visible{outline:none}&:disabled{cursor:not-allowed}}.viraui__textfield-module__Addon_kK1ef{min-inline-size:var(--space-x-large)}.viraui__textfield-module__Description_8Qxot{padding-inline:calc(var(--control-group-border-radius) / 2)}
|
|
@@ -4,9 +4,15 @@
|
|
|
4
4
|
"whenToUse": [
|
|
5
5
|
"Single-line text, email, password, or similar native input types",
|
|
6
6
|
"Start or end addon slots inside the shared control group",
|
|
7
|
-
"Label, description, and error copy with validation states"
|
|
7
|
+
"Label, description, and error copy with validation states",
|
|
8
|
+
"Several related Textfields grouped under one section legend as Fieldset children (e.g. billing details)"
|
|
9
|
+
],
|
|
10
|
+
"whenNotToUse": [
|
|
11
|
+
"Multi-line entry — use Textarea",
|
|
12
|
+
"Custom size or variant props — fixed medium treatment",
|
|
13
|
+
"Wrapping a lone Textfield in Fieldset when its own label is sufficient — Fieldset is for multi-field sections or shared legends",
|
|
14
|
+
"Using Fieldset instead of the Textfield label for a single control"
|
|
8
15
|
],
|
|
9
|
-
"whenNotToUse": ["Multi-line entry — use Textarea", "Custom size or variant props — fixed medium treatment"],
|
|
10
16
|
"accessibility": [
|
|
11
17
|
"Associate label with the input through the field label pattern",
|
|
12
18
|
"Surface validation errors in the shared description slot or Field.Error",
|
|
@@ -16,5 +22,5 @@
|
|
|
16
22
|
"Passing unsupported size or variant props",
|
|
17
23
|
"Expecting a focus ring when focus is only on addon controls"
|
|
18
24
|
],
|
|
19
|
-
"related": ["Textarea", "Select", "Text"]
|
|
25
|
+
"related": ["Fieldset", "Textarea", "Select", "Text"]
|
|
20
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import './textfield.css';
|
|
2
|
+
import { clsx } from "../../core/clsx.js";
|
|
3
3
|
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
4
4
|
import { Stack } from "../stack/stack.js";
|
|
5
5
|
import { BasicInput } from "../basic-input/basic-input.js";
|
|
@@ -7,7 +7,6 @@ import { FieldHelperCopy } from "../basic-input/field-helper-copy.js";
|
|
|
7
7
|
import { FieldLabel } from "../basic-input/field-label.js";
|
|
8
8
|
import { InputControlGroup } from "../basic-input/input-control-group.js";
|
|
9
9
|
import textfield_module_default from "./textfield.module.js";
|
|
10
|
-
import { clsx } from "clsx";
|
|
11
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
11
|
import { Field } from "@base-ui/react/field";
|
|
13
12
|
import { Input } from "@base-ui/react/input";
|
|
@@ -27,12 +26,11 @@ var Textfield = ({ className, description, dirty, disabled, endAddon, error, inv
|
|
|
27
26
|
validationMode,
|
|
28
27
|
render: /* @__PURE__ */ jsx(Stack, {
|
|
29
28
|
direction: "column",
|
|
30
|
-
fillChildren: false,
|
|
31
29
|
rowGap: "small"
|
|
32
30
|
}),
|
|
33
31
|
children: [
|
|
34
32
|
label && /* @__PURE__ */ jsx(Field.Label, {
|
|
35
|
-
|
|
33
|
+
className: textfield_module_default.Label,
|
|
36
34
|
children: /* @__PURE__ */ jsx(FieldLabel, { children: label })
|
|
37
35
|
}),
|
|
38
36
|
/* @__PURE__ */ jsx(InputControlGroup, {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
var textfield_module_default = {
|
|
2
|
-
Textfield: "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
Textfield: "viraui__textfield-module__Textfield_o-70A",
|
|
3
|
+
Label: "viraui__textfield-module__Label_5rjr0",
|
|
4
|
+
ControlGroup: "viraui__textfield-module__ControlGroup_2W-OC",
|
|
5
|
+
CustomBasicInput: "viraui__textfield-module__CustomBasicInput_oHgtd",
|
|
6
|
+
Addon: "viraui__textfield-module__Addon_kK1ef",
|
|
7
|
+
Description: "viraui__textfield-module__Description_8Qxot"
|
|
7
8
|
};
|
|
8
9
|
//#endregion
|
|
9
10
|
export { textfield_module_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.viraui__title-module__Title_CXMUX{--title-medium:clamp(var(--font-scale-body-medium),calc(var(--font-scale-body-medium) + var(--font-scale-body-x-small) / 12 + 0.24cqi),calc(var(--font-scale-body-medium) + var(--font-scale-body-x-small) / 3));--title-font-size:clamp(var(--font-scale-h2),calc(var(--title-medium) * pow(var(--font-heading-typescale), 5)),var(--font-scale-h1));--title-font-family:var(--font-family-heading);--title-font-weight:500;--title-font-width:100;--title-font-opsz:16;--title-line-height:var(--font-leading-standard);--title-letter-spacing:-0.03em;--title-align:start;--title-max-width:none;--title-white-space:normal;--title-padding-inline-start:0;--title-padding-inline-end:0;--title-padding-block-start:0;--title-padding-block-end:0;margin:0;max-inline-size:var(--title-max-width);font-family:var(--title-font-family);font-size:var(--title-font-size);line-height:var(--title-line-height);letter-spacing:var(--title-letter-spacing);text-align:var(--title-align);white-space:var(--title-white-space);word-break:break-word;font-optical-sizing:auto;font-variation-settings:"wght" var(--title-font-weight),"wdth" var(--title-font-width),"opsz" var(--title-font-opsz);text-box:var(--title-trim) var(--title-trim-type);display:inline-flex;&[data-title-balanced=true]{text-wrap:balance}&[data-title-selection=false]{-webkit-user-select:none;user-select:none}&[data-title-has-padding=true]{padding:var(--title-padding-block-start) var(--title-padding-inline-end) var(--title-padding-block-end) var(--title-padding-inline-start)}&[data-title-level=display]{--title-font-size:clamp(var(--font-scale-h1),calc(var(--font-scale-h1) + 4.643cqi - 0.9286rem),var(--font-scale-display))}&[data-title-level=h1]{--title-font-size:clamp(var(--font-scale-h2),calc(var(--title-medium) * pow(var(--font-heading-typescale), 5)),var(--font-scale-h1))}&[data-title-level=h2]{--title-font-size:clamp(var(--font-scale-h3),calc(var(--title-medium) * pow(var(--font-heading-typescale), 4)),var(--font-scale-h2))}&[data-title-level=h3]{--title-font-size:clamp(var(--font-scale-h4),calc(var(--title-medium) * pow(var(--font-heading-typescale), 3)),var(--font-scale-h3))}&[data-title-level=h4]{--title-font-size:clamp(var(--font-scale-h5),calc(var(--title-medium) * pow(var(--font-heading-typescale), 2)),var(--font-scale-h4))}&[data-title-level=h5]{--title-font-size:clamp(var(--font-scale-h6),calc(var(--title-medium) * pow(var(--font-heading-typescale), 1)),var(--font-scale-h5));--title-letter-spacing:-0.02em}&[data-title-level=h6]{--title-font-size:clamp(var(--font-scale-body-medium),var(--title-medium),var(--font-scale-h6));--title-letter-spacing:-0.02em}&[data-title-has-literal-color=true]{color:var(--title-literal-color)}&[data-title-line-height=none]{--title-line-height:0}&[data-title-line-height=x-small]{--title-line-height:var(--font-leading-x-small)}&[data-title-line-height=small]{--title-line-height:var(--font-leading-small)}&[data-title-line-height=large]{--title-line-height:var(--font-leading-large)}}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import './title.css';
|
|
2
|
+
import { clsx } from "../../core/clsx.js";
|
|
3
3
|
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
4
4
|
import { resolveAxisPadding } from "../../core/styles/resolve-axis-padding.js";
|
|
5
5
|
import title_module_default from "./title.module.js";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
6
|
import { useRender } from "@base-ui/react/use-render";
|
|
8
7
|
//#region src/components/title/title.tsx
|
|
9
8
|
var Title = ({ align = "start", balanced = false, selection = true, className, color, fontWidth, hPadding, level = "h1", lineHeight = "standard", maxWidth, opticalSize, ref, render, style, trim = "both", trimType = "cap alphabetic", vPadding, weight, whiteSpace = "normal", ...otherProps }) => {
|
|
@@ -17,8 +16,8 @@ var Title = ({ align = "start", balanced = false, selection = true, className, c
|
|
|
17
16
|
"--title-trim": trim ? `trim-${trim}` : "initial",
|
|
18
17
|
"--title-trim-type": trim ? trimType : "initial",
|
|
19
18
|
...typeof weight === "number" ? { "--title-font-weight": weight } : {},
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
"--title-font-width": fontWidth,
|
|
20
|
+
"--title-font-opsz": opticalSize,
|
|
22
21
|
...resolveAxisPadding(hPadding, "--title-padding-inline-start", "--title-padding-inline-end"),
|
|
23
22
|
...resolveAxisPadding(vPadding, "--title-padding-block-start", "--title-padding-block-end"),
|
|
24
23
|
...style
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const clsx: (...inputs: any[]) => string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//#region src/core/clsx.ts
|
|
2
|
+
var toVal = (mix) => {
|
|
3
|
+
let str = "";
|
|
4
|
+
if (typeof mix === "string" || typeof mix === "number") str += mix;
|
|
5
|
+
else if (typeof mix === "object" && mix !== null) {
|
|
6
|
+
if (Array.isArray(mix)) {
|
|
7
|
+
for (let index = 0; index < mix.length; index += 1) if (mix[index]) {
|
|
8
|
+
const value = toVal(mix[index]);
|
|
9
|
+
if (value) {
|
|
10
|
+
if (str) str += " ";
|
|
11
|
+
str += value;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
} else for (const key in mix) if (mix[key]) {
|
|
15
|
+
if (str) str += " ";
|
|
16
|
+
str += key;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return str;
|
|
20
|
+
};
|
|
21
|
+
var clsx = (...inputs) => {
|
|
22
|
+
let str = "";
|
|
23
|
+
for (let index = 0; index < inputs.length; index += 1) {
|
|
24
|
+
const input = inputs[index];
|
|
25
|
+
if (input) {
|
|
26
|
+
const value = toVal(input);
|
|
27
|
+
if (value) {
|
|
28
|
+
if (str) str += " ";
|
|
29
|
+
str += value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return str;
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { clsx };
|
|
@@ -4,11 +4,11 @@ var getElevationProps = ({ resting, hover, direction = ELEVATION_DEFAULTS.direct
|
|
|
4
4
|
attributes: {
|
|
5
5
|
"data-elevation": resting,
|
|
6
6
|
"data-elevation-direction": direction,
|
|
7
|
-
|
|
7
|
+
"data-elevation-hover": hover
|
|
8
8
|
},
|
|
9
9
|
style: {
|
|
10
10
|
"--shadow-color": shadowColor,
|
|
11
|
-
|
|
11
|
+
"--extra-shadow": extraShadow
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -4,19 +4,19 @@ export type IntrinsicViraProps = {
|
|
|
4
4
|
*
|
|
5
5
|
* @default The component root does not render a grow attribute.
|
|
6
6
|
*/
|
|
7
|
-
grow?: boolean
|
|
7
|
+
grow?: boolean;
|
|
8
8
|
/**
|
|
9
9
|
* Adds `data-shrink="false"` to the component root when false.
|
|
10
10
|
*
|
|
11
11
|
* @default The component root does not render a shrink attribute.
|
|
12
12
|
*/
|
|
13
|
-
shrink?: boolean
|
|
13
|
+
shrink?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* Adds `data-vibrant` to the component root when true so preflight vibrancy styles can opt the surface into backdrop filtering.
|
|
16
16
|
*
|
|
17
17
|
* @default The component root does not render a vibrant attribute.
|
|
18
18
|
*/
|
|
19
|
-
vibrant?: boolean
|
|
19
|
+
vibrant?: boolean;
|
|
20
20
|
};
|
|
21
21
|
type IntrinsicViraAttributes = {
|
|
22
22
|
'data-grow'?: 'false';
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,10 @@ import { Avatar } from "./components/avatar/avatar.js";
|
|
|
2
2
|
import { AvatarGroup } from "./components/avatar-group/avatar-group.js";
|
|
3
3
|
import { Stack } from "./components/stack/stack.js";
|
|
4
4
|
import { Chip } from "./components/chip/chip.js";
|
|
5
|
+
import { DialogClose } from "./components/dialog/dialog-close.js";
|
|
6
|
+
import { DialogSheet } from "./components/dialog/dialog-sheet.js";
|
|
7
|
+
import { DialogTrigger } from "./components/dialog/dialog-trigger.js";
|
|
8
|
+
import { Dialog } from "./components/dialog/dialog.js";
|
|
5
9
|
import { ClampText } from "./components/clamp-text/clamp-text.js";
|
|
6
10
|
import { ELEVATION_DEFAULTS } from "./core/elevation/elevation-types.js";
|
|
7
11
|
import { getElevationProps } from "./core/elevation/get-elevation-props.js";
|
|
@@ -17,11 +21,16 @@ import { Textarea } from "./components/textarea/textarea.js";
|
|
|
17
21
|
import { Slider } from "./components/slider/slider.js";
|
|
18
22
|
import { Switch } from "./components/switch/switch.js";
|
|
19
23
|
import { Checkbox } from "./components/checkbox/checkbox.js";
|
|
24
|
+
import { CheckboxGroup } from "./components/checkbox/checkbox-group.js";
|
|
25
|
+
import { Fieldset } from "./components/fieldset/fieldset.js";
|
|
20
26
|
import { Radio } from "./components/radio/radio.js";
|
|
21
27
|
import { RadioGroup } from "./components/radio/radio-group.js";
|
|
22
28
|
import { Select } from "./components/select/select.js";
|
|
23
29
|
import { Icon } from "./components/icon/icon.js";
|
|
24
30
|
import { Skeleton } from "./components/skeleton/skeleton.js";
|
|
25
31
|
import { Surface } from "./components/surface/surface.js";
|
|
32
|
+
import { Tabs } from "./components/tabs/tabs.js";
|
|
33
|
+
import { StaticNoise } from "./components/static-noise/static-noise.js";
|
|
34
|
+
import { ProgressiveBlur } from "./components/progressive-blur/progressive-blur.js";
|
|
26
35
|
import { Title } from "./components/title/title.js";
|
|
27
|
-
export { Avatar, AvatarGroup, Button, Checkbox, Chip, ClampText, ELEVATION_DEFAULTS, Elevator, Icon, IconButton, LinearProgress, Masonry, Radio, RadioGroup, Select, Skeleton, Slider, Spinner, Stack, Surface, Switch, Text, Textarea, Textfield, Title, getElevationProps };
|
|
36
|
+
export { Avatar, AvatarGroup, Button, Checkbox, CheckboxGroup, Chip, ClampText, Dialog, DialogClose, DialogSheet, DialogTrigger, ELEVATION_DEFAULTS, Elevator, Fieldset, Icon, IconButton, LinearProgress, Masonry, ProgressiveBlur, Radio, RadioGroup, Select, Skeleton, Slider, Spinner, Stack, StaticNoise, Surface, Switch, Tabs, Text, Textarea, Textfield, Title, getElevationProps };
|
|
@@ -2,7 +2,7 @@ import type { ComponentType, SVGProps } from 'react';
|
|
|
2
2
|
export type GeneratedIconComponent = ComponentType<SVGProps<SVGSVGElement> & {
|
|
3
3
|
size?: number | string;
|
|
4
4
|
}>;
|
|
5
|
-
export declare const generatedIconNames: readonly ["ArrowDown", "ArrowDownLeft", "ArrowDownRight", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowUpLeft", "ArrowUpRight", "CaretDown", "CaretLeft", "CaretRight", "CaretUp", "Check", "ChevronDown", "ChevronExpandY", "ChevronLeft", "ChevronRight", "ChevronUp", "CircleHalfDottedClock", "CircleImage", "Clock", "DarkLight", "History", "Image", "ImagesLayered", "Lock", "LockOpen", "Magnifier", "Minus", "MoonStars", "Plus", "Quickstart", "RefreshAnticlockwise", "Sun", "Xmark"];
|
|
5
|
+
export declare const generatedIconNames: readonly ["ArrowDown", "ArrowDownLeft", "ArrowDownRight", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowUpLeft", "ArrowUpRight", "CaretDown", "CaretLeft", "CaretRight", "CaretUp", "Check", "ChevronDown", "ChevronExpandY", "ChevronLeft", "ChevronRight", "ChevronUp", "CircleCheck", "CircleHalfDottedClock", "CircleImage", "Clock", "DarkLight", "Duplicate", "History", "Image", "ImagesLayered", "Lock", "LockOpen", "Magnifier", "Minus", "MoonStars", "Plus", "Quickstart", "RefreshAnticlockwise", "ShieldCheck", "Sun", "Xmark"];
|
|
6
6
|
export type GeneratedIconName = (typeof generatedIconNames)[number];
|
|
7
7
|
export declare const generatedIconVariants: readonly ["duo"];
|
|
8
8
|
export type GeneratedIconVariant = (typeof generatedIconVariants)[number];
|
|
@@ -26,10 +26,12 @@ export declare const generatedIconRegistry: {
|
|
|
26
26
|
readonly ChevronLeft: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/ChevronLeft").ChevronLeftProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
27
27
|
readonly ChevronRight: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/ChevronRight").ChevronRightProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
28
28
|
readonly ChevronUp: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/ChevronUp").ChevronUpProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
29
|
+
readonly CircleCheck: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/CircleCheck").CircleCheckProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
29
30
|
readonly CircleHalfDottedClock: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/CircleHalfDottedClock").CircleHalfDottedClockProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
30
31
|
readonly CircleImage: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/CircleImage").CircleImageProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
31
32
|
readonly Clock: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/Clock").ClockProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
32
33
|
readonly DarkLight: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/DarkLight").DarkLightProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
34
|
+
readonly Duplicate: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/Duplicate").DuplicateProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
33
35
|
readonly History: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/History").HistoryProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
34
36
|
readonly Image: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/Image").ImageProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
35
37
|
readonly ImagesLayered: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/ImagesLayered").ImagesLayeredProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -41,6 +43,7 @@ export declare const generatedIconRegistry: {
|
|
|
41
43
|
readonly Plus: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/Plus").PlusProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
42
44
|
readonly Quickstart: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/Quickstart").QuickstartProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
43
45
|
readonly RefreshAnticlockwise: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/RefreshAnticlockwise").RefreshAnticlockwiseProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
46
|
+
readonly ShieldCheck: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/ShieldCheck").ShieldCheckProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
44
47
|
readonly Sun: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/Sun").SunProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
45
48
|
readonly Xmark: import("react").ForwardRefExoticComponent<Omit<import("./icons/duo/Xmark").XmarkProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
46
49
|
};
|
|
@@ -16,10 +16,12 @@ import ChevronExpandYDuoIcon from './icons/duo/ChevronExpandY';
|
|
|
16
16
|
import ChevronLeftDuoIcon from './icons/duo/ChevronLeft';
|
|
17
17
|
import ChevronRightDuoIcon from './icons/duo/ChevronRight';
|
|
18
18
|
import ChevronUpDuoIcon from './icons/duo/ChevronUp';
|
|
19
|
+
import CircleCheckDuoIcon from './icons/duo/CircleCheck';
|
|
19
20
|
import CircleHalfDottedClockDuoIcon from './icons/duo/CircleHalfDottedClock';
|
|
20
21
|
import CircleImageDuoIcon from './icons/duo/CircleImage';
|
|
21
22
|
import ClockDuoIcon from './icons/duo/Clock';
|
|
22
23
|
import DarkLightDuoIcon from './icons/duo/DarkLight';
|
|
24
|
+
import DuplicateDuoIcon from './icons/duo/Duplicate';
|
|
23
25
|
import HistoryDuoIcon from './icons/duo/History';
|
|
24
26
|
import ImageDuoIcon from './icons/duo/Image';
|
|
25
27
|
import ImagesLayeredDuoIcon from './icons/duo/ImagesLayered';
|
|
@@ -31,6 +33,7 @@ import MoonStarsDuoIcon from './icons/duo/MoonStars';
|
|
|
31
33
|
import PlusDuoIcon from './icons/duo/Plus';
|
|
32
34
|
import QuickstartDuoIcon from './icons/duo/Quickstart';
|
|
33
35
|
import RefreshAnticlockwiseDuoIcon from './icons/duo/RefreshAnticlockwise';
|
|
36
|
+
import ShieldCheckDuoIcon from './icons/duo/ShieldCheck';
|
|
34
37
|
import SunDuoIcon from './icons/duo/Sun';
|
|
35
38
|
import XmarkDuoIcon from './icons/duo/Xmark';
|
|
36
39
|
export const generatedIconNames = [
|
|
@@ -52,10 +55,12 @@ export const generatedIconNames = [
|
|
|
52
55
|
'ChevronLeft',
|
|
53
56
|
'ChevronRight',
|
|
54
57
|
'ChevronUp',
|
|
58
|
+
'CircleCheck',
|
|
55
59
|
'CircleHalfDottedClock',
|
|
56
60
|
'CircleImage',
|
|
57
61
|
'Clock',
|
|
58
62
|
'DarkLight',
|
|
63
|
+
'Duplicate',
|
|
59
64
|
'History',
|
|
60
65
|
'Image',
|
|
61
66
|
'ImagesLayered',
|
|
@@ -67,6 +72,7 @@ export const generatedIconNames = [
|
|
|
67
72
|
'Plus',
|
|
68
73
|
'Quickstart',
|
|
69
74
|
'RefreshAnticlockwise',
|
|
75
|
+
'ShieldCheck',
|
|
70
76
|
'Sun',
|
|
71
77
|
'Xmark',
|
|
72
78
|
];
|
|
@@ -91,10 +97,12 @@ export const generatedIconRegistry = {
|
|
|
91
97
|
ChevronLeft: ChevronLeftDuoIcon,
|
|
92
98
|
ChevronRight: ChevronRightDuoIcon,
|
|
93
99
|
ChevronUp: ChevronUpDuoIcon,
|
|
100
|
+
CircleCheck: CircleCheckDuoIcon,
|
|
94
101
|
CircleHalfDottedClock: CircleHalfDottedClockDuoIcon,
|
|
95
102
|
CircleImage: CircleImageDuoIcon,
|
|
96
103
|
Clock: ClockDuoIcon,
|
|
97
104
|
DarkLight: DarkLightDuoIcon,
|
|
105
|
+
Duplicate: DuplicateDuoIcon,
|
|
98
106
|
History: HistoryDuoIcon,
|
|
99
107
|
Image: ImageDuoIcon,
|
|
100
108
|
ImagesLayered: ImagesLayeredDuoIcon,
|
|
@@ -106,6 +114,7 @@ export const generatedIconRegistry = {
|
|
|
106
114
|
Plus: PlusDuoIcon,
|
|
107
115
|
Quickstart: QuickstartDuoIcon,
|
|
108
116
|
RefreshAnticlockwise: RefreshAnticlockwiseDuoIcon,
|
|
117
|
+
ShieldCheck: ShieldCheckDuoIcon,
|
|
109
118
|
Sun: SunDuoIcon,
|
|
110
119
|
Xmark: XmarkDuoIcon,
|
|
111
120
|
},
|
|
@@ -7,7 +7,7 @@ const ArrowDown = React.forwardRef(({ size, className, style, ...props }, ref) =
|
|
|
7
7
|
width: props.width || 18,
|
|
8
8
|
height: props.height || 18,
|
|
9
9
|
};
|
|
10
|
-
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M9 15.75a.75.75 0 0 1-.75-.75V2.75a.75.75 0 0 1 1.5 0V15a.75.75 0 0 1-.75.75", "data-color": "color-2"
|
|
10
|
+
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M9 15.75a.75.75 0 0 1-.75-.75V2.75a.75.75 0 0 1 1.5 0V15a.75.75 0 0 1-.75.75", "data-color": "color-2" }), _jsx("path", { d: "M9 16a.74.74 0 0 1-.53-.22l-4.25-4.25a.75.75 0 1 1 1.061-1.061l3.72 3.72 3.72-3.72a.75.75 0 1 1 1.061 1.061l-4.25 4.25a.75.75 0 0 1-.53.22z" })] }) }));
|
|
11
11
|
});
|
|
12
12
|
ArrowDown.displayName = 'ArrowDown';
|
|
13
13
|
export default ArrowDown;
|
|
@@ -7,7 +7,7 @@ const ArrowDownLeft = React.forwardRef(({ size, className, style, ...props }, re
|
|
|
7
7
|
width: props.width || 18,
|
|
8
8
|
height: props.height || 18,
|
|
9
9
|
};
|
|
10
|
-
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M4 14.75a.75.75 0 0 1-.53-1.281L13.72 3.22a.75.75 0 1 1 1.061 1.061L4.53 14.53a.75.75 0 0 1-.53.22", "data-color": "color-2"
|
|
10
|
+
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M4 14.75a.75.75 0 0 1-.53-1.281L13.72 3.22a.75.75 0 1 1 1.061 1.061L4.53 14.53a.75.75 0 0 1-.53.22", "data-color": "color-2" }), _jsx("path", { d: "M9.761 15H3.75a.75.75 0 0 1-.75-.75V8.24a.75.75 0 0 1 1.5 0v5.26h5.261a.75.75 0 0 1 0 1.5" })] }) }));
|
|
11
11
|
});
|
|
12
12
|
ArrowDownLeft.displayName = 'ArrowDownLeft';
|
|
13
13
|
export default ArrowDownLeft;
|
|
@@ -7,7 +7,7 @@ const ArrowDownRight = React.forwardRef(({ size, className, style, ...props }, r
|
|
|
7
7
|
width: props.width || 18,
|
|
8
8
|
height: props.height || 18,
|
|
9
9
|
};
|
|
10
|
-
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M14 14.75a.74.74 0 0 1-.53-.22L3.22 4.28a.75.75 0 1 1 1.061-1.061L14.53 13.47a.75.75 0 0 1-.53 1.28", "data-color": "color-2"
|
|
10
|
+
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M14 14.75a.74.74 0 0 1-.53-.22L3.22 4.28a.75.75 0 1 1 1.061-1.061L14.53 13.47a.75.75 0 0 1-.53 1.28", "data-color": "color-2" }), _jsx("path", { d: "M14.25 15H8.239a.75.75 0 0 1 0-1.5H13.5V8.24a.75.75 0 0 1 1.5 0v6.01a.75.75 0 0 1-.75.75" })] }) }));
|
|
11
11
|
});
|
|
12
12
|
ArrowDownRight.displayName = 'ArrowDownRight';
|
|
13
13
|
export default ArrowDownRight;
|
|
@@ -7,7 +7,7 @@ const ArrowLeft = React.forwardRef(({ size, className, style, ...props }, ref) =
|
|
|
7
7
|
width: props.width || 18,
|
|
8
8
|
height: props.height || 18,
|
|
9
9
|
};
|
|
10
|
-
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M15.25 9.75H3a.75.75 0 0 1 0-1.5h12.25a.75.75 0 0 1 0 1.5", "data-color": "color-2"
|
|
10
|
+
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M15.25 9.75H3a.75.75 0 0 1 0-1.5h12.25a.75.75 0 0 1 0 1.5", "data-color": "color-2" }), _jsx("path", { d: "M7 14a.74.74 0 0 1-.53-.22L2.22 9.53a.75.75 0 0 1 0-1.061L6.47 4.22a.75.75 0 1 1 1.061 1.061l-3.72 3.72 3.72 3.72a.75.75 0 0 1-.53 1.281z" })] }) }));
|
|
11
11
|
});
|
|
12
12
|
ArrowLeft.displayName = 'ArrowLeft';
|
|
13
13
|
export default ArrowLeft;
|
|
@@ -7,7 +7,7 @@ const ArrowRight = React.forwardRef(({ size, className, style, ...props }, ref)
|
|
|
7
7
|
width: props.width || 18,
|
|
8
8
|
height: props.height || 18,
|
|
9
9
|
};
|
|
10
|
-
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M15 9.75H2.75a.75.75 0 0 1 0-1.5H15a.75.75 0 0 1 0 1.5", "data-color": "color-2"
|
|
10
|
+
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M15 9.75H2.75a.75.75 0 0 1 0-1.5H15a.75.75 0 0 1 0 1.5", "data-color": "color-2" }), _jsx("path", { d: "M11 14a.75.75 0 0 1-.53-1.281l3.72-3.72-3.72-3.72a.75.75 0 1 1 1.061-1.061l4.25 4.25a.75.75 0 0 1 0 1.061l-4.25 4.25a.75.75 0 0 1-.53.22z" })] }) }));
|
|
11
11
|
});
|
|
12
12
|
ArrowRight.displayName = 'ArrowRight';
|
|
13
13
|
export default ArrowRight;
|
|
@@ -7,7 +7,7 @@ const ArrowUp = React.forwardRef(({ size, className, style, ...props }, ref) =>
|
|
|
7
7
|
width: props.width || 18,
|
|
8
8
|
height: props.height || 18,
|
|
9
9
|
};
|
|
10
|
-
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M9 16a.75.75 0 0 1-.75-.75V3a.75.75 0 0 1 1.5 0v12.25A.75.75 0 0 1 9 16", "data-color": "color-2"
|
|
10
|
+
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M9 16a.75.75 0 0 1-.75-.75V3a.75.75 0 0 1 1.5 0v12.25A.75.75 0 0 1 9 16", "data-color": "color-2" }), _jsx("path", { d: "M13.25 7.75a.74.74 0 0 1-.53-.22L9 3.81 5.28 7.53a.75.75 0 1 1-1.061-1.061L8.47 2.22a.75.75 0 0 1 1.061 0l4.25 4.25a.75.75 0 0 1-.53 1.281z" })] }) }));
|
|
11
11
|
});
|
|
12
12
|
ArrowUp.displayName = 'ArrowUp';
|
|
13
13
|
export default ArrowUp;
|
|
@@ -7,7 +7,7 @@ const ArrowUpLeft = React.forwardRef(({ size, className, style, ...props }, ref)
|
|
|
7
7
|
width: props.width || 18,
|
|
8
8
|
height: props.height || 18,
|
|
9
9
|
};
|
|
10
|
-
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M14.25 15a.74.74 0 0 1-.53-.22L3.47 4.53a.75.75 0 1 1 1.061-1.061L14.78 13.72a.75.75 0 0 1-.53 1.281z", "data-color": "color-2"
|
|
10
|
+
return (_jsx("svg", { ref: ref, viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg", width: dimensions.width, height: dimensions.height, fill: props.fill || 'currentColor', className: className, style: style, ...props, children: _jsxs("g", { className: "nc-icon-wrapper", children: [_jsx("path", { d: "M14.25 15a.74.74 0 0 1-.53-.22L3.47 4.53a.75.75 0 1 1 1.061-1.061L14.78 13.72a.75.75 0 0 1-.53 1.281z", "data-color": "color-2" }), _jsx("path", { d: "M3.75 10.51A.75.75 0 0 1 3 9.76V3.75A.75.75 0 0 1 3.75 3h6.011a.75.75 0 0 1 0 1.5H4.5v5.26a.75.75 0 0 1-.75.75" })] }) }));
|
|
11
11
|
});
|
|
12
12
|
ArrowUpLeft.displayName = 'ArrowUpLeft';
|
|
13
13
|
export default ArrowUpLeft;
|