tosijs-ui 1.0.10 → 1.0.11
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/README.md +4 -4
- package/bin/docs.ts +233 -0
- package/dist/doc-browser.d.ts +27 -0
- package/dist/icons/data/activity.d.ts +1 -0
- package/dist/icons/data/airplay.d.ts +1 -0
- package/dist/icons/data/alertCircle.d.ts +1 -0
- package/dist/icons/data/alertOctagon.d.ts +1 -0
- package/dist/icons/data/alertTriangle.d.ts +1 -0
- package/dist/icons/data/alignCenter.d.ts +1 -0
- package/dist/icons/data/alignJustify.d.ts +1 -0
- package/dist/icons/data/alignLeft.d.ts +1 -0
- package/dist/icons/data/alignRight.d.ts +1 -0
- package/dist/icons/data/anchor.d.ts +1 -0
- package/dist/icons/data/aperture.d.ts +1 -0
- package/dist/icons/data/archive.d.ts +1 -0
- package/dist/icons/data/arrowDown.d.ts +1 -0
- package/dist/icons/data/arrowDownCircle.d.ts +1 -0
- package/dist/icons/data/arrowDownLeft.d.ts +1 -0
- package/dist/icons/data/arrowDownRight.d.ts +1 -0
- package/dist/icons/data/arrowLeft.d.ts +1 -0
- package/dist/icons/data/arrowLeftCircle.d.ts +1 -0
- package/dist/icons/data/arrowRight.d.ts +1 -0
- package/dist/icons/data/arrowRightCircle.d.ts +1 -0
- package/dist/icons/data/arrowUp.d.ts +1 -0
- package/dist/icons/data/arrowUpCircle.d.ts +1 -0
- package/dist/icons/data/arrowUpLeft.d.ts +1 -0
- package/dist/icons/data/arrowUpRight.d.ts +1 -0
- package/dist/icons/data/atSign.d.ts +1 -0
- package/dist/icons/data/award.d.ts +1 -0
- package/dist/icons/data/barChart.d.ts +1 -0
- package/dist/icons/data/barChart2.d.ts +1 -0
- package/dist/icons/data/battery.d.ts +1 -0
- package/dist/icons/data/batteryCharging.d.ts +1 -0
- package/dist/icons/data/bell.d.ts +1 -0
- package/dist/icons/data/bellOff.d.ts +1 -0
- package/dist/icons/data/blog.d.ts +1 -0
- package/dist/icons/data/blueprint.d.ts +1 -0
- package/dist/icons/data/bluetooth.d.ts +1 -0
- package/dist/icons/data/bold.d.ts +1 -0
- package/dist/icons/data/book.d.ts +1 -0
- package/dist/icons/data/bookOpen.d.ts +1 -0
- package/dist/icons/data/bookmark.d.ts +1 -0
- package/dist/icons/data/box.d.ts +1 -0
- package/dist/icons/data/briefcase.d.ts +1 -0
- package/dist/icons/data/bug.d.ts +1 -0
- package/dist/icons/data/calendar.d.ts +1 -0
- package/dist/icons/data/camera.d.ts +1 -0
- package/dist/icons/data/cameraOff.d.ts +1 -0
- package/dist/icons/data/cast.d.ts +1 -0
- package/dist/icons/data/check.d.ts +1 -0
- package/dist/icons/data/checkCircle.d.ts +1 -0
- package/dist/icons/data/checkSquare.d.ts +1 -0
- package/dist/icons/data/chevronDown.d.ts +1 -0
- package/dist/icons/data/chevronLeft.d.ts +1 -0
- package/dist/icons/data/chevronRight.d.ts +1 -0
- package/dist/icons/data/chevronUp.d.ts +1 -0
- package/dist/icons/data/chevronsDown.d.ts +1 -0
- package/dist/icons/data/chevronsLeft.d.ts +1 -0
- package/dist/icons/data/chevronsRight.d.ts +1 -0
- package/dist/icons/data/chevronsUp.d.ts +1 -0
- package/dist/icons/data/chrome.d.ts +1 -0
- package/dist/icons/data/circle.d.ts +1 -0
- package/dist/icons/data/clipboard.d.ts +1 -0
- package/dist/icons/data/clock.d.ts +1 -0
- package/dist/icons/data/cloud.d.ts +1 -0
- package/dist/icons/data/cloudDrizzle.d.ts +1 -0
- package/dist/icons/data/cloudLightning.d.ts +1 -0
- package/dist/icons/data/cloudOff.d.ts +1 -0
- package/dist/icons/data/cloudRain.d.ts +1 -0
- package/dist/icons/data/cloudSnow.d.ts +1 -0
- package/dist/icons/data/cmy.d.ts +1 -0
- package/dist/icons/data/code.d.ts +1 -0
- package/dist/icons/data/codepen.d.ts +1 -0
- package/dist/icons/data/codesandbox.d.ts +1 -0
- package/dist/icons/data/coffee.d.ts +1 -0
- package/dist/icons/data/columns.d.ts +1 -0
- package/dist/icons/data/command.d.ts +1 -0
- package/dist/icons/data/compass.d.ts +1 -0
- package/dist/icons/data/copy.d.ts +1 -0
- package/dist/icons/data/cornerDownLeft.d.ts +1 -0
- package/dist/icons/data/cornerDownRight.d.ts +1 -0
- package/dist/icons/data/cornerLeftDown.d.ts +1 -0
- package/dist/icons/data/cornerLeftUp.d.ts +1 -0
- package/dist/icons/data/cornerRightDown.d.ts +1 -0
- package/dist/icons/data/cornerRightUp.d.ts +1 -0
- package/dist/icons/data/cornerUpLeft.d.ts +1 -0
- package/dist/icons/data/cornerUpRight.d.ts +1 -0
- package/dist/icons/data/cpu.d.ts +1 -0
- package/dist/icons/data/creditCard.d.ts +1 -0
- package/dist/icons/data/crop.d.ts +1 -0
- package/dist/icons/data/crosshair.d.ts +1 -0
- package/dist/icons/data/database.d.ts +1 -0
- package/dist/icons/data/delete.d.ts +1 -0
- package/dist/icons/data/disc.d.ts +1 -0
- package/dist/icons/data/discord.d.ts +1 -0
- package/dist/icons/data/divide.d.ts +1 -0
- package/dist/icons/data/divideCircle.d.ts +1 -0
- package/dist/icons/data/divideSquare.d.ts +1 -0
- package/dist/icons/data/dollarSign.d.ts +1 -0
- package/dist/icons/data/download.d.ts +1 -0
- package/dist/icons/data/downloadCloud.d.ts +1 -0
- package/dist/icons/data/dribbble.d.ts +1 -0
- package/dist/icons/data/droplet.d.ts +1 -0
- package/dist/icons/data/earth.d.ts +1 -0
- package/dist/icons/data/edit.d.ts +1 -0
- package/dist/icons/data/edit2.d.ts +1 -0
- package/dist/icons/data/edit3.d.ts +1 -0
- package/dist/icons/data/externalLink.d.ts +1 -0
- package/dist/icons/data/eye.d.ts +1 -0
- package/dist/icons/data/eyeOff.d.ts +1 -0
- package/dist/icons/data/facebook.d.ts +1 -0
- package/dist/icons/data/fastForward.d.ts +1 -0
- package/dist/icons/data/feather.d.ts +1 -0
- package/dist/icons/data/figma.d.ts +1 -0
- package/dist/icons/data/file.d.ts +1 -0
- package/dist/icons/data/fileMinus.d.ts +1 -0
- package/dist/icons/data/filePlus.d.ts +1 -0
- package/dist/icons/data/fileText.d.ts +1 -0
- package/dist/icons/data/film.d.ts +1 -0
- package/dist/icons/data/filter.d.ts +1 -0
- package/dist/icons/data/flag.d.ts +1 -0
- package/dist/icons/data/folder.d.ts +1 -0
- package/dist/icons/data/folderMinus.d.ts +1 -0
- package/dist/icons/data/folderPlus.d.ts +1 -0
- package/dist/icons/data/fontBold.d.ts +1 -0
- package/dist/icons/data/fontItalic.d.ts +1 -0
- package/dist/icons/data/fontUnderline.d.ts +1 -0
- package/dist/icons/data/framer.d.ts +1 -0
- package/dist/icons/data/frown.d.ts +1 -0
- package/dist/icons/data/game.d.ts +1 -0
- package/dist/icons/data/gift.d.ts +1 -0
- package/dist/icons/data/gitBranch.d.ts +1 -0
- package/dist/icons/data/gitCommit.d.ts +1 -0
- package/dist/icons/data/gitMerge.d.ts +1 -0
- package/dist/icons/data/gitPullRequest.d.ts +1 -0
- package/dist/icons/data/github.d.ts +1 -0
- package/dist/icons/data/gitlab.d.ts +1 -0
- package/dist/icons/data/globe.d.ts +1 -0
- package/dist/icons/data/google.d.ts +1 -0
- package/dist/icons/data/grid.d.ts +1 -0
- package/dist/icons/data/hardDrive.d.ts +1 -0
- package/dist/icons/data/hash.d.ts +1 -0
- package/dist/icons/data/headphones.d.ts +1 -0
- package/dist/icons/data/heart.d.ts +1 -0
- package/dist/icons/data/helpCircle.d.ts +1 -0
- package/dist/icons/data/hexagon.d.ts +1 -0
- package/dist/icons/data/home.d.ts +1 -0
- package/dist/icons/data/image.d.ts +1 -0
- package/dist/icons/data/inbox.d.ts +1 -0
- package/dist/icons/data/indent.d.ts +1 -0
- package/dist/icons/data/index.d.ts +313 -0
- package/dist/icons/data/info.d.ts +1 -0
- package/dist/icons/data/instagram.d.ts +1 -0
- package/dist/icons/data/italic.d.ts +1 -0
- package/dist/icons/data/key.d.ts +1 -0
- package/dist/icons/data/layers.d.ts +1 -0
- package/dist/icons/data/layout.d.ts +1 -0
- package/dist/icons/data/lifeBuoy.d.ts +1 -0
- package/dist/icons/data/link.d.ts +1 -0
- package/dist/icons/data/link2.d.ts +1 -0
- package/dist/icons/data/linkedin.d.ts +1 -0
- package/dist/icons/data/list.d.ts +1 -0
- package/dist/icons/data/listBullet.d.ts +1 -0
- package/dist/icons/data/listNumber.d.ts +1 -0
- package/dist/icons/data/loader.d.ts +1 -0
- package/dist/icons/data/lock.d.ts +1 -0
- package/dist/icons/data/logIn.d.ts +1 -0
- package/dist/icons/data/logOut.d.ts +1 -0
- package/dist/icons/data/mail.d.ts +1 -0
- package/dist/icons/data/map.d.ts +1 -0
- package/dist/icons/data/mapPin.d.ts +1 -0
- package/dist/icons/data/maximize.d.ts +1 -0
- package/dist/icons/data/maximize2.d.ts +1 -0
- package/dist/icons/data/meh.d.ts +1 -0
- package/dist/icons/data/menu.d.ts +1 -0
- package/dist/icons/data/messageCircle.d.ts +1 -0
- package/dist/icons/data/messageSquare.d.ts +1 -0
- package/dist/icons/data/mic.d.ts +1 -0
- package/dist/icons/data/micOff.d.ts +1 -0
- package/dist/icons/data/minimize.d.ts +1 -0
- package/dist/icons/data/minimize2.d.ts +1 -0
- package/dist/icons/data/minus.d.ts +1 -0
- package/dist/icons/data/minusCircle.d.ts +1 -0
- package/dist/icons/data/minusSquare.d.ts +1 -0
- package/dist/icons/data/monitor.d.ts +1 -0
- package/dist/icons/data/moon.d.ts +1 -0
- package/dist/icons/data/moreHorizontal.d.ts +1 -0
- package/dist/icons/data/moreVertical.d.ts +1 -0
- package/dist/icons/data/mousePointer.d.ts +1 -0
- package/dist/icons/data/move.d.ts +1 -0
- package/dist/icons/data/music.d.ts +1 -0
- package/dist/icons/data/navigation.d.ts +1 -0
- package/dist/icons/data/navigation2.d.ts +1 -0
- package/dist/icons/data/npm.d.ts +1 -0
- package/dist/icons/data/octagon.d.ts +1 -0
- package/dist/icons/data/outdent.d.ts +1 -0
- package/dist/icons/data/package.d.ts +1 -0
- package/dist/icons/data/paperclip.d.ts +1 -0
- package/dist/icons/data/pause.d.ts +1 -0
- package/dist/icons/data/pauseCircle.d.ts +1 -0
- package/dist/icons/data/penTool.d.ts +1 -0
- package/dist/icons/data/percent.d.ts +1 -0
- package/dist/icons/data/phone.d.ts +1 -0
- package/dist/icons/data/phoneCall.d.ts +1 -0
- package/dist/icons/data/phoneForwarded.d.ts +1 -0
- package/dist/icons/data/phoneIncoming.d.ts +1 -0
- package/dist/icons/data/phoneMissed.d.ts +1 -0
- package/dist/icons/data/phoneOff.d.ts +1 -0
- package/dist/icons/data/phoneOutgoing.d.ts +1 -0
- package/dist/icons/data/pieChart.d.ts +1 -0
- package/dist/icons/data/play.d.ts +1 -0
- package/dist/icons/data/playCircle.d.ts +1 -0
- package/dist/icons/data/plus.d.ts +1 -0
- package/dist/icons/data/plusCircle.d.ts +1 -0
- package/dist/icons/data/plusSquare.d.ts +1 -0
- package/dist/icons/data/pocket.d.ts +1 -0
- package/dist/icons/data/power.d.ts +1 -0
- package/dist/icons/data/printer.d.ts +1 -0
- package/dist/icons/data/radio.d.ts +1 -0
- package/dist/icons/data/refreshCcw.d.ts +1 -0
- package/dist/icons/data/refreshCw.d.ts +1 -0
- package/dist/icons/data/repeat.d.ts +1 -0
- package/dist/icons/data/resize.d.ts +1 -0
- package/dist/icons/data/rewind.d.ts +1 -0
- package/dist/icons/data/rgb.d.ts +1 -0
- package/dist/icons/data/rotateCcw.d.ts +1 -0
- package/dist/icons/data/rotateCw.d.ts +1 -0
- package/dist/icons/data/rss.d.ts +1 -0
- package/dist/icons/data/save.d.ts +1 -0
- package/dist/icons/data/scissors.d.ts +1 -0
- package/dist/icons/data/search.d.ts +1 -0
- package/dist/icons/data/send.d.ts +1 -0
- package/dist/icons/data/server.d.ts +1 -0
- package/dist/icons/data/settings.d.ts +1 -0
- package/dist/icons/data/share.d.ts +1 -0
- package/dist/icons/data/share2.d.ts +1 -0
- package/dist/icons/data/shield.d.ts +1 -0
- package/dist/icons/data/shieldOff.d.ts +1 -0
- package/dist/icons/data/shoppingBag.d.ts +1 -0
- package/dist/icons/data/shoppingCart.d.ts +1 -0
- package/dist/icons/data/shuffle.d.ts +1 -0
- package/dist/icons/data/sidebar.d.ts +1 -0
- package/dist/icons/data/skipBack.d.ts +1 -0
- package/dist/icons/data/skipForward.d.ts +1 -0
- package/dist/icons/data/slack.d.ts +1 -0
- package/dist/icons/data/slash.d.ts +1 -0
- package/dist/icons/data/sliders.d.ts +1 -0
- package/dist/icons/data/smartphone.d.ts +1 -0
- package/dist/icons/data/smile.d.ts +1 -0
- package/dist/icons/data/sortAscending.d.ts +1 -0
- package/dist/icons/data/sortDescending.d.ts +1 -0
- package/dist/icons/data/speaker.d.ts +1 -0
- package/dist/icons/data/square.d.ts +1 -0
- package/dist/icons/data/star.d.ts +1 -0
- package/dist/icons/data/stopCircle.d.ts +1 -0
- package/dist/icons/data/sun.d.ts +1 -0
- package/dist/icons/data/sunrise.d.ts +1 -0
- package/dist/icons/data/sunset.d.ts +1 -0
- package/dist/icons/data/table.d.ts +1 -0
- package/dist/icons/data/tablet.d.ts +1 -0
- package/dist/icons/data/tag.d.ts +1 -0
- package/dist/icons/data/target.d.ts +1 -0
- package/dist/icons/data/terminal.d.ts +1 -0
- package/dist/icons/data/thermometer.d.ts +1 -0
- package/dist/icons/data/thumbsDown.d.ts +1 -0
- package/dist/icons/data/thumbsUp.d.ts +1 -0
- package/dist/icons/data/toggleLeft.d.ts +1 -0
- package/dist/icons/data/toggleRight.d.ts +1 -0
- package/dist/icons/data/tool.d.ts +1 -0
- package/dist/icons/data/tosi.d.ts +1 -0
- package/dist/icons/data/tosiFavicon.d.ts +1 -0
- package/dist/icons/data/tosiPlatform.d.ts +1 -0
- package/dist/icons/data/tosiUi.d.ts +1 -0
- package/dist/icons/data/tosiXr.d.ts +1 -0
- package/dist/icons/data/trash.d.ts +1 -0
- package/dist/icons/data/trash2.d.ts +1 -0
- package/dist/icons/data/trello.d.ts +1 -0
- package/dist/icons/data/trendingDown.d.ts +1 -0
- package/dist/icons/data/trendingUp.d.ts +1 -0
- package/dist/icons/data/triangle.d.ts +1 -0
- package/dist/icons/data/truck.d.ts +1 -0
- package/dist/icons/data/tv.d.ts +1 -0
- package/dist/icons/data/twitch.d.ts +1 -0
- package/dist/icons/data/twitter.d.ts +1 -0
- package/dist/icons/data/type.d.ts +1 -0
- package/dist/icons/data/umbrella.d.ts +1 -0
- package/dist/icons/data/underline.d.ts +1 -0
- package/dist/icons/data/unlock.d.ts +1 -0
- package/dist/icons/data/upload.d.ts +1 -0
- package/dist/icons/data/uploadCloud.d.ts +1 -0
- package/dist/icons/data/user.d.ts +1 -0
- package/dist/icons/data/userCheck.d.ts +1 -0
- package/dist/icons/data/userMinus.d.ts +1 -0
- package/dist/icons/data/userPlus.d.ts +1 -0
- package/dist/icons/data/userX.d.ts +1 -0
- package/dist/icons/data/users.d.ts +1 -0
- package/dist/icons/data/video.d.ts +1 -0
- package/dist/icons/data/videoOff.d.ts +1 -0
- package/dist/icons/data/voicemail.d.ts +1 -0
- package/dist/icons/data/volume.d.ts +1 -0
- package/dist/icons/data/volume1.d.ts +1 -0
- package/dist/icons/data/volume2.d.ts +1 -0
- package/dist/icons/data/volumeX.d.ts +1 -0
- package/dist/icons/data/watch.d.ts +1 -0
- package/dist/icons/data/wifi.d.ts +1 -0
- package/dist/icons/data/wifiOff.d.ts +1 -0
- package/dist/icons/data/wind.d.ts +1 -0
- package/dist/icons/data/x.d.ts +1 -0
- package/dist/icons/data/xCircle.d.ts +1 -0
- package/dist/icons/data/xOctagon.d.ts +1 -0
- package/dist/icons/data/xSquare.d.ts +1 -0
- package/dist/icons/data/xrColor.d.ts +1 -0
- package/dist/icons/data/youtube.d.ts +1 -0
- package/dist/icons/data/zap.d.ts +1 -0
- package/dist/icons/data/zapOff.d.ts +1 -0
- package/dist/icons/data/zoomIn.d.ts +1 -0
- package/dist/icons/data/zoomOut.d.ts +1 -0
- package/dist/iife.js +47 -35
- package/dist/iife.js.map +22 -20
- package/dist/index.d.ts +2 -0
- package/dist/index.js +21 -9
- package/dist/index.js.map +20 -18
- package/dist/live-example.d.ts +4 -0
- package/dist/localize.d.ts +5 -9
- package/dist/tab-selector.d.ts +6 -0
- package/dist/theme.d.ts +52 -0
- package/dist/version.d.ts +1 -1
- package/package.json +5 -3
package/dist/live-example.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ interface ExampleParts extends PartsMap {
|
|
|
17
17
|
export declare class LiveExample extends Component<ExampleParts> {
|
|
18
18
|
persistToDom: boolean;
|
|
19
19
|
prettier: boolean;
|
|
20
|
+
iframe: boolean;
|
|
20
21
|
prefix: string;
|
|
21
22
|
storageKey: string;
|
|
22
23
|
context: ExampleContext;
|
|
@@ -55,6 +56,9 @@ export declare class LiveExample extends Component<ExampleParts> {
|
|
|
55
56
|
refreshRemote: () => void;
|
|
56
57
|
updateSources: () => void;
|
|
57
58
|
refresh: () => Promise<void>;
|
|
59
|
+
private refreshInline;
|
|
60
|
+
private registerComponentsInIframe;
|
|
61
|
+
private refreshInIframe;
|
|
58
62
|
initFromElements(elements: HTMLElement[]): void;
|
|
59
63
|
showDefaultTab(): void;
|
|
60
64
|
render(): void;
|
package/dist/localize.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ interface TranslationMap {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const i18n: {
|
|
7
7
|
locale: String & import("tosijs").XinProps<string>;
|
|
8
|
-
locales: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]
|
|
9
|
-
languages: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]
|
|
10
|
-
emoji: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]
|
|
8
|
+
locales: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]>;
|
|
9
|
+
languages: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]>;
|
|
10
|
+
emoji: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]>;
|
|
11
11
|
stringMap: {
|
|
12
|
-
[x: string]: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]
|
|
12
|
+
[x: string]: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]>;
|
|
13
13
|
} & import("tosijs").XinProps<TranslationMap>;
|
|
14
14
|
localeOptions: ({
|
|
15
15
|
icon: any;
|
|
@@ -23,11 +23,7 @@ export declare const i18n: {
|
|
|
23
23
|
icon: any;
|
|
24
24
|
caption: string;
|
|
25
25
|
value: string;
|
|
26
|
-
}[]
|
|
27
|
-
icon: any;
|
|
28
|
-
caption: string;
|
|
29
|
-
value: string;
|
|
30
|
-
}>;
|
|
26
|
+
}[]>;
|
|
31
27
|
} & import("tosijs").XinProps<{
|
|
32
28
|
locale: string;
|
|
33
29
|
locales: string[];
|
package/dist/tab-selector.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ export declare class TabSelector extends WebComponent {
|
|
|
6
6
|
makeTab(tabs: TabSelector, tabBody: HTMLElement, bodyId: string): HTMLElement;
|
|
7
7
|
static styleSpec: {
|
|
8
8
|
':host': {
|
|
9
|
+
'--tosi-tabs-selected-color': string;
|
|
10
|
+
'--tosi-tabs-bar-color': string;
|
|
11
|
+
'--tosi-tabs-bar-height': string;
|
|
12
|
+
'--xin-tabs-selected-color': string;
|
|
13
|
+
'--xin-tabs-bar-color': string;
|
|
14
|
+
'--xin-tabs-bar-height': string;
|
|
9
15
|
display: string;
|
|
10
16
|
flexDirection: string;
|
|
11
17
|
position: string;
|
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Color, XinStyleSheet, XinStyleRule } from 'tosijs';
|
|
2
|
+
export interface ThemeColors {
|
|
3
|
+
accent: Color;
|
|
4
|
+
background: Color;
|
|
5
|
+
text: Color;
|
|
6
|
+
accentText?: Color;
|
|
7
|
+
backgroundInset?: Color;
|
|
8
|
+
border?: Color;
|
|
9
|
+
shadow?: Color;
|
|
10
|
+
focus?: Color;
|
|
11
|
+
}
|
|
12
|
+
export declare const defaultColors: ThemeColors;
|
|
13
|
+
export declare const baseVariables: XinStyleRule;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a complete theme stylesheet from colors
|
|
16
|
+
*/
|
|
17
|
+
export declare function createTheme(colors: ThemeColors): XinStyleSheet;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a dark theme by inverting luminance of all color values
|
|
20
|
+
*/
|
|
21
|
+
export declare function createDarkTheme(colors: ThemeColors): XinStyleSheet;
|
|
22
|
+
/**
|
|
23
|
+
* Applies a theme to the document
|
|
24
|
+
* @param theme - The theme stylesheet to apply
|
|
25
|
+
* @param id - Optional ID for the style element (default: 'tosi-theme')
|
|
26
|
+
*/
|
|
27
|
+
export declare function applyTheme(theme: XinStyleSheet, id?: string): void;
|
|
28
|
+
export declare const baseTheme: XinStyleSheet;
|
|
29
|
+
export declare const baseDarkTheme: XinStyleSheet;
|
|
30
|
+
/**
|
|
31
|
+
* Creates CSS variable aliases for backward compatibility with --xin- prefix
|
|
32
|
+
* Add this to your theme if migrating from older xinjs-ui versions
|
|
33
|
+
*/
|
|
34
|
+
export declare const legacyAliases: XinStyleRule;
|
|
35
|
+
/**
|
|
36
|
+
* Creates a theme with legacy aliases included
|
|
37
|
+
*/
|
|
38
|
+
export declare function createThemeWithLegacy(colors: ThemeColors): XinStyleSheet;
|
|
39
|
+
/**
|
|
40
|
+
* Helper to create component-specific variables that derive from base variables
|
|
41
|
+
*
|
|
42
|
+
* Example usage in a component:
|
|
43
|
+
* ```typescript
|
|
44
|
+
* const selectVars = componentVars('select', {
|
|
45
|
+
* gap: varDefault.tosiSpacingSm('8px'),
|
|
46
|
+
* touchSize: varDefault.tosiTouchSize('44px'),
|
|
47
|
+
* })
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function componentVars<T extends Record<string, string>>(componentName: string, defaults: T): {
|
|
51
|
+
[K in keyof T]: string;
|
|
52
|
+
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.11";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tosijs-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "simple robust web-components for use with xinjs or anything else",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "bun --watch bin/dev.ts",
|
|
@@ -34,9 +34,10 @@
|
|
|
34
34
|
"bun-types": "latest",
|
|
35
35
|
"chokidar": "^4.0.3",
|
|
36
36
|
"eslint": "^8.57.1",
|
|
37
|
+
"happy-dom": "^20.3.1",
|
|
38
|
+
"playwright": "^1.57.0",
|
|
37
39
|
"prettier": "^2.8.8",
|
|
38
|
-
"typescript": "^5.9.3"
|
|
39
|
-
"playwright": "^1.57.0"
|
|
40
|
+
"typescript": "^5.9.3"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
43
|
"marked": "^16.4.2",
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
},
|
|
45
46
|
"files": [
|
|
46
47
|
"/dist",
|
|
48
|
+
"/bin/docs.ts",
|
|
47
49
|
"/LICENSE",
|
|
48
50
|
"/README.md"
|
|
49
51
|
],
|