plggmatic 0.3.0 → 0.4.0
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 +45 -0
- package/dist/Appearance/model/appearance.d.ts +91 -0
- package/dist/Appearance/model/appearance.d.ts.map +1 -0
- package/dist/Appearance/usecase/appearanceCss.d.ts +24 -0
- package/dist/Appearance/usecase/appearanceCss.d.ts.map +1 -0
- package/dist/Appearance/usecase/asAppearance.d.ts +13 -0
- package/dist/Appearance/usecase/asAppearance.d.ts.map +1 -0
- package/dist/Component/index.d.ts +1 -0
- package/dist/Component/index.d.ts.map +1 -1
- package/dist/Component/usecase/button.d.ts.map +1 -1
- package/dist/Component/usecase/properties.d.ts +59 -0
- package/dist/Component/usecase/properties.d.ts.map +1 -0
- package/dist/Component/usecase/sidebarNav.d.ts +1 -0
- package/dist/Component/usecase/sidebarNav.d.ts.map +1 -1
- package/dist/Meta/model/classHooks.d.ts +116 -0
- package/dist/Meta/model/classHooks.d.ts.map +1 -1
- package/dist/Navigate/index.d.ts +1 -0
- package/dist/Navigate/index.d.ts.map +1 -1
- package/dist/Navigate/usecase/carouselScript.d.ts +26 -0
- package/dist/Navigate/usecase/carouselScript.d.ts.map +1 -0
- package/dist/Navigate/usecase/navigationScript.d.ts.map +1 -1
- package/dist/Shell/index.d.ts +21 -0
- package/dist/Shell/index.d.ts.map +1 -0
- package/dist/Shell/usecase/kit.d.ts +30 -0
- package/dist/Shell/usecase/kit.d.ts.map +1 -0
- package/dist/Shell/usecase/shell.d.ts +85 -0
- package/dist/Shell/usecase/shell.d.ts.map +1 -0
- package/dist/Style/index.d.ts +2 -0
- package/dist/Style/index.d.ts.map +1 -1
- package/dist/Style/model/metric.d.ts.map +1 -1
- package/dist/Style/model/palette.d.ts.map +1 -1
- package/dist/Style/model/token.d.ts.map +1 -1
- package/dist/Style/model/typography.d.ts.map +1 -1
- package/dist/Style/model/zIndex.d.ts.map +1 -1
- package/dist/Style/usecase/carouselCss.d.ts +17 -0
- package/dist/Style/usecase/carouselCss.d.ts.map +1 -0
- package/dist/Style/usecase/shareCss.d.ts +49 -0
- package/dist/Style/usecase/shareCss.d.ts.map +1 -0
- package/dist/System/usecase/systemCss.d.ts +43 -0
- package/dist/System/usecase/systemCss.d.ts.map +1 -0
- package/dist/columnsEntry.es.js +42 -2
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +938 -65
- package/dist/styleEntry.d.ts +6 -1
- package/dist/styleEntry.d.ts.map +1 -1
- package/dist/styleEntry.es.js +246 -26
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -17,12 +17,13 @@ const __modules = {
|
|
|
17
17
|
"use strict";
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.boardClass = exports.rowLinkClass = exports.listActionClass = exports.listActionsClass = exports.listItemClass = exports.listClass = exports.menuBodyClass = exports.errorClass = exports.hintClass = exports.backClass = exports.singleClass = exports.schedulerClass = exports.crumbSepClass = exports.crumbLinkClass = exports.crumbHereClass = exports.crumbsClass = exports.colHeadLinkClass = exports.colHeadTitleClass = exports.colHeadClass = exports.fieldMediaClass = exports.fieldRefClass = exports.fieldMomentClass = exports.fieldFlagClass = exports.fieldNumClass = exports.checkLabelClass = exports.checkboxClass = exports.checkClass = exports.inputClass = exports.fieldValueClass = exports.fieldErrorClass = exports.fieldLabelClass = exports.fieldClass = exports.fieldsClass = exports.formClass = exports.toastToneClass = exports.toastCloseClass = exports.toastClass = exports.toasterClass = exports.dialogActionsClass = exports.dialogTitleClass = exports.dialogClass = exports.backdropClass = exports.modalClass = exports.disabledClass = exports.actionsClass = exports.btnDangerClass = exports.btnPrimaryClass = exports.btnClass = exports.cssPrefix = exports.frameworkName = void 0;
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.savePreference = exports.readPreference = exports.widthColumn = exports.menuColumn = exports.browser = exports.pinnedPanel = exports.workspaceWith = exports.workspace = exports.revealColumn = exports.revealOptions = void 0;
|
|
20
|
+
exports.foldTrail = exports.settledTrail = exports.resolveTrail = exports.injectNavigationScript = exports.navigationInitScript = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = exports.compositionHref = exports.compositionQuery = exports.decodeComposition = exports.escapeChar = exports.fieldSeparator = exports.entrySeparator = exports.spanParam = exports.restParam = exports.columnsOf = exports.soloComposition = exports.columnWithSpan = exports.columnOf = exports.asidePane = exports.mainPane = exports.navPane = exports.pane = exports.columnWith = exports.column = exports.rowWith = exports.row = exports.paneClass = exports.colClass = exports.rowClass = exports.landmarkTag = exports.openedAttr = exports.replacingAttr = exports.leavingAttr = exports.trailClass = exports.foldClass = exports.selector = exports.cssVarRef = exports.cssVar = exports.queryChoiceClass = exports.queryClass = exports.tileCaptionClass = exports.tileLabelClass = exports.tileLinkClass = exports.tileBodyClass = exports.tileClass = void 0;
|
|
21
|
+
exports.flagValue = exports.numValue = exports.textValue = exports.fieldOf = exports.field = exports.advanceColumns = exports.renderMode = exports.singleColumn = exports.crumbsOf = exports.multiColumnWith = exports.multiColumn = exports.currentScreen = exports.toggleMode = exports.modes = exports.formView = exports.errorFor = exports.parseForm = exports.isPending = exports.pendingSubmission = exports.idleSubmission = exports.controlKinds = exports.toaster = exports.toast = exports.tones = exports.confirmDialog = exports.declaredForm = exports.fieldControl = exports.checkbox = exports.selectInput = exports.textArea = exports.textInput = exports.breadcrumb = exports.colHead = exports.navTree = exports.prose = exports.heading = exports.textLink = exports.button = exports.pressDim = exports.hoverDim = exports.focusRing = exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = exports.restep = exports.stepFrom = void 0;
|
|
22
|
+
exports.declare = exports.menu = exports.menuEntry = exports.actionById = exports.collectionById = exports.collection = exports.permits = exports.isDestructive = exports.action = exports.confirm = exports.immediate = exports.matchesChoice = exports.matchesQuery = exports.queryChoice = exports.query = exports.applyVia = exports.projectRow = exports.projection = exports.projectField = exports.asFlag = exports.asMoment = exports.asNum = exports.asText = exports.unusedAdapter$ = exports.noDefaultAdapter$ = exports.unknownAdapter$ = exports.diagnosticSeverity = exports.reconcile = exports.resolveAdapter = exports.named = exports.hostAdapter = exports.effect = exports.scope = exports.actor = exports.adapter = exports.dynamic = exports.async = exports.sync = exports.makeRow = exports.refTarget = exports.fieldText = exports.mediaValue$ = exports.refValue$ = exports.momentValue$ = exports.flagValue$ = exports.numValue$ = exports.textValue$ = exports.mediaValue = exports.refValue = exports.momentValue = void 0;
|
|
23
|
+
exports.flowSchemaOf = exports.flowHost = exports.catalogOf = exports.rowCap = exports.runFlow$ = exports.emit$ = exports.enumArg$ = exports.textArg$ = exports.nullary$ = exports.tool = exports.runFlowEffect = exports.emit = exports.enumArg = exports.textArg = exports.nullary = exports.resumeFlow = exports.startFlow = exports.readFlow = exports.flowSchema = exports.defaultFuel = exports.schedule = exports.sceneToUrl = exports.parseUrl = exports.detailLevel$ = exports.boardLevel$ = exports.listLevel$ = exports.menuLevel$ = exports.failed = exports.loaded = exports.cancelAction = exports.confirmAction = exports.requestAction = exports.queryChoiceInput = exports.queryInput = exports.select = exports.openMenu = exports.urlChanged = exports.navigate = exports.sliceOf = exports.focusedView = exports.binding = exports.detailView$ = exports.listView$ = exports.menuView$ = exports.detailView = exports.listView = exports.menuView = exports.choiceOf = exports.slotOf = exports.emptyModel = void 0;
|
|
24
|
+
exports.navSubgroupClass = exports.navFlatClass = exports.navLinkClass = exports.navGroupTitleClass = exports.navGroupClass = exports.navNumberedClass = exports.navClass = exports.widthAttr = exports.programmaticScrollAttr = exports.phoneAttr = exports.menuCompactAttr = exports.menuOpenAttr = exports.seamClass = exports.menuClass = exports.browserClass = exports.pinnedClass = exports.workspaceClass = exports.workspaceCss = exports.workspaceOptions = exports.reachableScroll = exports.visibleColumnStart = exports.stripStyle = exports.stripVar = exports.stripGeometry = exports.stripMetrics = exports.pragmaticThemeWithPalette = exports.pragmaticTheme = exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNavClass = exports.sidebarNav = exports.themeToggleCss = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = exports.inertModelContext = exports.detectModelContext = exports.invokeWith = exports.syncCatalog = exports.diffCatalog = exports.descriptorOf = exports.ran$ = exports.stalled$ = exports.rejected$ = exports.ran = exports.stalled = exports.rejected = exports.runFlow = void 0;
|
|
25
|
+
exports.calloutClass = exports.shellOpenAttr = exports.shellBackdropClass = exports.shellMenuId = exports.shellMenuClass = exports.shellMenuButtonClass = exports.shellBarBrandClass = exports.shellBarClass = exports.shellMinAttr = exports.docClass = exports.shellPageClass = exports.shellFootClass = exports.shellFoldClass = exports.shellBrandClass = exports.shellBodyClass = exports.shellTitleClass = exports.shellHeadClass = exports.shellSideClass = exports.shellClass = exports.asAppearance = exports.appearanceCss = exports.soft = exports.monochrome = exports.systemCss = exports.kitAppearanceCss = exports.kitSystemCss = exports.kitCss = exports.shell = exports.carouselInitScript = exports.carouselNextClass = exports.carouselPrevClass = exports.carouselCss = exports.shareInsetVar = exports.spanTwoClass = exports.shareClass = exports.shareCss = exports.shareOptions = exports.savePreference = exports.readPreference = exports.widthColumn = exports.menuColumn = exports.browser = exports.pinnedPanel = exports.workspaceWith = exports.workspace = exports.revealColumn = exports.revealOptions = exports.glideEase = exports.revealTarget = exports.navSubgroupTitleClass = void 0;
|
|
26
|
+
exports.switchLabelClass = exports.switchThumbClass = exports.switchTrackClass = exports.switchClass = exports.propControlClass = exports.propLabelClass = exports.propClass = exports.propsClass = exports.toggle = exports.entry = exports.choice = exports.propertyRow = exports.propertyList = exports.calloutToneClass = exports.calloutTitleClass = void 0;
|
|
26
27
|
var identity_1 = require("src/Meta/model/identity.ts");
|
|
27
28
|
Object.defineProperty(exports, "frameworkName", { enumerable: true, get: function () { return identity_1.frameworkName; } });
|
|
28
29
|
Object.defineProperty(exports, "cssPrefix", { enumerable: true, get: function () { return identity_1.cssPrefix; } });
|
|
@@ -87,6 +88,9 @@ Object.defineProperty(exports, "cssVarRef", { enumerable: true, get: function ()
|
|
|
87
88
|
Object.defineProperty(exports, "selector", { enumerable: true, get: function () { return classHooks_1.selector; } });
|
|
88
89
|
Object.defineProperty(exports, "foldClass", { enumerable: true, get: function () { return classHooks_1.foldClass; } });
|
|
89
90
|
Object.defineProperty(exports, "trailClass", { enumerable: true, get: function () { return classHooks_1.trailClass; } });
|
|
91
|
+
Object.defineProperty(exports, "leavingAttr", { enumerable: true, get: function () { return classHooks_1.leavingAttr; } });
|
|
92
|
+
Object.defineProperty(exports, "replacingAttr", { enumerable: true, get: function () { return classHooks_1.replacingAttr; } });
|
|
93
|
+
Object.defineProperty(exports, "openedAttr", { enumerable: true, get: function () { return classHooks_1.openedAttr; } });
|
|
90
94
|
var Layout_1 = require("src/Layout/index.ts");
|
|
91
95
|
Object.defineProperty(exports, "landmarkTag", { enumerable: true, get: function () { return Layout_1.landmarkTag; } });
|
|
92
96
|
Object.defineProperty(exports, "rowClass", { enumerable: true, get: function () { return Layout_1.rowClass; } });
|
|
@@ -373,6 +377,67 @@ Object.defineProperty(exports, "widthColumn", { enumerable: true, get: function
|
|
|
373
377
|
var Layout_6 = require("src/Layout/index.ts");
|
|
374
378
|
Object.defineProperty(exports, "readPreference", { enumerable: true, get: function () { return Layout_6.readPreference; } });
|
|
375
379
|
Object.defineProperty(exports, "savePreference", { enumerable: true, get: function () { return Layout_6.savePreference; } });
|
|
380
|
+
var shareCss_1 = require("src/Style/usecase/shareCss.ts");
|
|
381
|
+
Object.defineProperty(exports, "shareOptions", { enumerable: true, get: function () { return shareCss_1.shareOptions; } });
|
|
382
|
+
Object.defineProperty(exports, "shareCss", { enumerable: true, get: function () { return shareCss_1.shareCss; } });
|
|
383
|
+
var classHooks_3 = require("src/Meta/model/classHooks.ts");
|
|
384
|
+
Object.defineProperty(exports, "shareClass", { enumerable: true, get: function () { return classHooks_3.shareClass; } });
|
|
385
|
+
Object.defineProperty(exports, "spanTwoClass", { enumerable: true, get: function () { return classHooks_3.spanTwoClass; } });
|
|
386
|
+
Object.defineProperty(exports, "shareInsetVar", { enumerable: true, get: function () { return classHooks_3.shareInsetVar; } });
|
|
387
|
+
var carouselCss_1 = require("src/Style/usecase/carouselCss.ts");
|
|
388
|
+
Object.defineProperty(exports, "carouselCss", { enumerable: true, get: function () { return carouselCss_1.carouselCss; } });
|
|
389
|
+
var classHooks_4 = require("src/Meta/model/classHooks.ts");
|
|
390
|
+
Object.defineProperty(exports, "carouselPrevClass", { enumerable: true, get: function () { return classHooks_4.carouselPrevClass; } });
|
|
391
|
+
Object.defineProperty(exports, "carouselNextClass", { enumerable: true, get: function () { return classHooks_4.carouselNextClass; } });
|
|
392
|
+
var Navigate_2 = require("src/Navigate/index.ts");
|
|
393
|
+
Object.defineProperty(exports, "carouselInitScript", { enumerable: true, get: function () { return Navigate_2.carouselInitScript; } });
|
|
394
|
+
var Shell_1 = require("src/Shell/index.ts");
|
|
395
|
+
Object.defineProperty(exports, "shell", { enumerable: true, get: function () { return Shell_1.shell; } });
|
|
396
|
+
Object.defineProperty(exports, "kitCss", { enumerable: true, get: function () { return Shell_1.kitCss; } });
|
|
397
|
+
Object.defineProperty(exports, "kitSystemCss", { enumerable: true, get: function () { return Shell_1.kitSystemCss; } });
|
|
398
|
+
Object.defineProperty(exports, "kitAppearanceCss", { enumerable: true, get: function () { return Shell_1.kitAppearanceCss; } });
|
|
399
|
+
Object.defineProperty(exports, "systemCss", { enumerable: true, get: function () { return Shell_1.systemCss; } });
|
|
400
|
+
Object.defineProperty(exports, "monochrome", { enumerable: true, get: function () { return Shell_1.monochrome; } });
|
|
401
|
+
Object.defineProperty(exports, "soft", { enumerable: true, get: function () { return Shell_1.soft; } });
|
|
402
|
+
Object.defineProperty(exports, "appearanceCss", { enumerable: true, get: function () { return Shell_1.appearanceCss; } });
|
|
403
|
+
Object.defineProperty(exports, "asAppearance", { enumerable: true, get: function () { return Shell_1.asAppearance; } });
|
|
404
|
+
var classHooks_5 = require("src/Meta/model/classHooks.ts");
|
|
405
|
+
Object.defineProperty(exports, "shellClass", { enumerable: true, get: function () { return classHooks_5.shellClass; } });
|
|
406
|
+
Object.defineProperty(exports, "shellSideClass", { enumerable: true, get: function () { return classHooks_5.shellSideClass; } });
|
|
407
|
+
Object.defineProperty(exports, "shellHeadClass", { enumerable: true, get: function () { return classHooks_5.shellHeadClass; } });
|
|
408
|
+
Object.defineProperty(exports, "shellTitleClass", { enumerable: true, get: function () { return classHooks_5.shellTitleClass; } });
|
|
409
|
+
Object.defineProperty(exports, "shellBodyClass", { enumerable: true, get: function () { return classHooks_5.shellBodyClass; } });
|
|
410
|
+
Object.defineProperty(exports, "shellBrandClass", { enumerable: true, get: function () { return classHooks_5.shellBrandClass; } });
|
|
411
|
+
Object.defineProperty(exports, "shellFoldClass", { enumerable: true, get: function () { return classHooks_5.shellFoldClass; } });
|
|
412
|
+
Object.defineProperty(exports, "shellFootClass", { enumerable: true, get: function () { return classHooks_5.shellFootClass; } });
|
|
413
|
+
Object.defineProperty(exports, "shellPageClass", { enumerable: true, get: function () { return classHooks_5.shellPageClass; } });
|
|
414
|
+
Object.defineProperty(exports, "docClass", { enumerable: true, get: function () { return classHooks_5.docClass; } });
|
|
415
|
+
Object.defineProperty(exports, "shellMinAttr", { enumerable: true, get: function () { return classHooks_5.shellMinAttr; } });
|
|
416
|
+
Object.defineProperty(exports, "shellBarClass", { enumerable: true, get: function () { return classHooks_5.shellBarClass; } });
|
|
417
|
+
Object.defineProperty(exports, "shellBarBrandClass", { enumerable: true, get: function () { return classHooks_5.shellBarBrandClass; } });
|
|
418
|
+
Object.defineProperty(exports, "shellMenuButtonClass", { enumerable: true, get: function () { return classHooks_5.shellMenuButtonClass; } });
|
|
419
|
+
Object.defineProperty(exports, "shellMenuClass", { enumerable: true, get: function () { return classHooks_5.shellMenuClass; } });
|
|
420
|
+
Object.defineProperty(exports, "shellMenuId", { enumerable: true, get: function () { return classHooks_5.shellMenuId; } });
|
|
421
|
+
Object.defineProperty(exports, "shellBackdropClass", { enumerable: true, get: function () { return classHooks_5.shellBackdropClass; } });
|
|
422
|
+
Object.defineProperty(exports, "shellOpenAttr", { enumerable: true, get: function () { return classHooks_5.shellOpenAttr; } });
|
|
423
|
+
Object.defineProperty(exports, "calloutClass", { enumerable: true, get: function () { return classHooks_5.calloutClass; } });
|
|
424
|
+
Object.defineProperty(exports, "calloutTitleClass", { enumerable: true, get: function () { return classHooks_5.calloutTitleClass; } });
|
|
425
|
+
Object.defineProperty(exports, "calloutToneClass", { enumerable: true, get: function () { return classHooks_5.calloutToneClass; } });
|
|
426
|
+
var properties_1 = require("src/Component/usecase/properties.ts");
|
|
427
|
+
Object.defineProperty(exports, "propertyList", { enumerable: true, get: function () { return properties_1.propertyList; } });
|
|
428
|
+
Object.defineProperty(exports, "propertyRow", { enumerable: true, get: function () { return properties_1.propertyRow; } });
|
|
429
|
+
Object.defineProperty(exports, "choice", { enumerable: true, get: function () { return properties_1.choice; } });
|
|
430
|
+
Object.defineProperty(exports, "entry", { enumerable: true, get: function () { return properties_1.entry; } });
|
|
431
|
+
Object.defineProperty(exports, "toggle", { enumerable: true, get: function () { return properties_1.toggle; } });
|
|
432
|
+
var classHooks_6 = require("src/Meta/model/classHooks.ts");
|
|
433
|
+
Object.defineProperty(exports, "propsClass", { enumerable: true, get: function () { return classHooks_6.propsClass; } });
|
|
434
|
+
Object.defineProperty(exports, "propClass", { enumerable: true, get: function () { return classHooks_6.propClass; } });
|
|
435
|
+
Object.defineProperty(exports, "propLabelClass", { enumerable: true, get: function () { return classHooks_6.propLabelClass; } });
|
|
436
|
+
Object.defineProperty(exports, "propControlClass", { enumerable: true, get: function () { return classHooks_6.propControlClass; } });
|
|
437
|
+
Object.defineProperty(exports, "switchClass", { enumerable: true, get: function () { return classHooks_6.switchClass; } });
|
|
438
|
+
Object.defineProperty(exports, "switchTrackClass", { enumerable: true, get: function () { return classHooks_6.switchTrackClass; } });
|
|
439
|
+
Object.defineProperty(exports, "switchThumbClass", { enumerable: true, get: function () { return classHooks_6.switchThumbClass; } });
|
|
440
|
+
Object.defineProperty(exports, "switchLabelClass", { enumerable: true, get: function () { return classHooks_6.switchLabelClass; } });
|
|
376
441
|
|
|
377
442
|
},
|
|
378
443
|
"src/Meta/model/identity.ts": function (module, exports, require) {
|
|
@@ -386,15 +451,54 @@ exports.cssPrefix = "pm";
|
|
|
386
451
|
"src/Meta/model/classHooks.ts": function (module, exports, require) {
|
|
387
452
|
"use strict";
|
|
388
453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
389
|
-
exports.
|
|
390
|
-
exports.
|
|
454
|
+
exports.phoneAttr = exports.menuCompactAttr = exports.menuOpenAttr = exports.seamClass = exports.menuClass = exports.browserClass = exports.pinnedClass = exports.workspaceClass = exports.carouselNextClass = exports.carouselPrevClass = exports.shareInsetVar = exports.spanTwoClass = exports.shareClass = exports.calloutToneClass = exports.calloutTitleClass = exports.calloutClass = exports.shellOpenAttr = exports.shellBackdropClass = exports.shellMenuId = exports.shellMenuClass = exports.shellMenuButtonClass = exports.shellBarBrandClass = exports.shellBarClass = exports.shellMinAttr = exports.docClass = exports.shellPageClass = exports.shellFootClass = exports.shellFoldClass = exports.shellBrandClass = exports.shellBodyClass = exports.shellTitleClass = exports.shellHeadClass = exports.shellSideClass = exports.shellClass = exports.switchLabelClass = exports.switchThumbClass = exports.switchTrackClass = exports.switchClass = exports.propControlClass = exports.propLabelClass = exports.propClass = exports.propsClass = exports.trailClass = exports.openedAttr = exports.replacingAttr = exports.leavingAttr = exports.foldClass = exports.paneClass = exports.colClass = exports.rowClass = void 0;
|
|
455
|
+
exports.crumbSepClass = exports.crumbLinkClass = exports.crumbHereClass = exports.crumbsClass = exports.colHeadLinkClass = exports.colHeadTitleClass = exports.colHeadClass = exports.fieldMediaClass = exports.fieldRefClass = exports.fieldMomentClass = exports.fieldFlagClass = exports.fieldNumClass = exports.checkLabelClass = exports.checkboxClass = exports.checkClass = exports.inputClass = exports.fieldValueClass = exports.fieldErrorClass = exports.fieldLabelClass = exports.fieldClass = exports.fieldsClass = exports.formClass = exports.toastToneClass = exports.toastCloseClass = exports.toastClass = exports.toasterClass = exports.dialogActionsClass = exports.dialogTitleClass = exports.dialogClass = exports.backdropClass = exports.modalClass = exports.disabledClass = exports.actionsClass = exports.btnDangerClass = exports.btnPrimaryClass = exports.btnClass = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.navSubgroupTitleClass = exports.navSubgroupClass = exports.navFlatClass = exports.navLabelClass = exports.navLinkClass = exports.navGroupTitleClass = exports.navGroupClass = exports.navNumberedClass = exports.navClass = exports.widthAttr = exports.programmaticScrollAttr = void 0;
|
|
456
|
+
exports.selector = exports.cssVarRef = exports.cssVar = exports.queryChoiceClass = exports.queryClass = exports.tileCaptionClass = exports.tileLabelClass = exports.tileLinkClass = exports.tileBodyClass = exports.tileClass = exports.boardClass = exports.rowLinkClass = exports.listActionClass = exports.listActionsClass = exports.listItemClass = exports.listClass = exports.menuBodyClass = exports.errorClass = exports.hintClass = exports.backClass = exports.singleClass = exports.schedulerClass = void 0;
|
|
391
457
|
const identity_1 = require("src/Meta/model/identity.ts");
|
|
392
458
|
const hook = (name) => `${identity_1.cssPrefix}-${name}`;
|
|
393
459
|
exports.rowClass = hook("row");
|
|
394
460
|
exports.colClass = hook("col");
|
|
395
461
|
exports.paneClass = hook("pane");
|
|
396
462
|
exports.foldClass = hook("fold");
|
|
463
|
+
exports.leavingAttr = `data-${identity_1.cssPrefix}-leaving`;
|
|
464
|
+
exports.replacingAttr = `data-${identity_1.cssPrefix}-replacing`;
|
|
465
|
+
exports.openedAttr = `data-${identity_1.cssPrefix}-opened`;
|
|
397
466
|
exports.trailClass = hook("trail");
|
|
467
|
+
exports.propsClass = hook("props");
|
|
468
|
+
exports.propClass = hook("prop");
|
|
469
|
+
exports.propLabelClass = hook("prop-label");
|
|
470
|
+
exports.propControlClass = hook("prop-control");
|
|
471
|
+
exports.switchClass = hook("switch");
|
|
472
|
+
exports.switchTrackClass = hook("switch-track");
|
|
473
|
+
exports.switchThumbClass = hook("switch-thumb");
|
|
474
|
+
exports.switchLabelClass = hook("switch-label");
|
|
475
|
+
exports.shellClass = hook("shell");
|
|
476
|
+
exports.shellSideClass = hook("shell-side");
|
|
477
|
+
exports.shellHeadClass = hook("shell-head");
|
|
478
|
+
exports.shellTitleClass = hook("shell-title");
|
|
479
|
+
exports.shellBodyClass = hook("shell-body");
|
|
480
|
+
exports.shellBrandClass = hook("shell-brand");
|
|
481
|
+
exports.shellFoldClass = hook("shell-fold");
|
|
482
|
+
exports.shellFootClass = hook("shell-foot");
|
|
483
|
+
exports.shellPageClass = hook("shell-page");
|
|
484
|
+
exports.docClass = hook("doc");
|
|
485
|
+
exports.shellMinAttr = `data-${identity_1.cssPrefix}-shell-min`;
|
|
486
|
+
exports.shellBarClass = hook("shell-bar");
|
|
487
|
+
exports.shellBarBrandClass = hook("shell-bar-brand");
|
|
488
|
+
exports.shellMenuButtonClass = hook("shell-menu-btn");
|
|
489
|
+
exports.shellMenuClass = hook("shell-menu");
|
|
490
|
+
exports.shellMenuId = `${identity_1.cssPrefix}-shell-menu`;
|
|
491
|
+
exports.shellBackdropClass = hook("shell-backdrop");
|
|
492
|
+
exports.shellOpenAttr = `data-${identity_1.cssPrefix}-shell-open`;
|
|
493
|
+
exports.calloutClass = hook("callout");
|
|
494
|
+
exports.calloutTitleClass = hook("callout-title");
|
|
495
|
+
const calloutToneClass = (tone) => hook("callout-" + tone);
|
|
496
|
+
exports.calloutToneClass = calloutToneClass;
|
|
497
|
+
exports.shareClass = hook("share");
|
|
498
|
+
exports.spanTwoClass = hook("span-2");
|
|
499
|
+
exports.shareInsetVar = `--${identity_1.cssPrefix}-share-inset`;
|
|
500
|
+
exports.carouselPrevClass = hook("carousel-prev");
|
|
501
|
+
exports.carouselNextClass = hook("carousel-next");
|
|
398
502
|
exports.workspaceClass = hook("workspace");
|
|
399
503
|
exports.pinnedClass = hook("pinned");
|
|
400
504
|
exports.browserClass = hook("browser");
|
|
@@ -410,6 +514,7 @@ exports.navNumberedClass = hook("nav-numbered");
|
|
|
410
514
|
exports.navGroupClass = hook("nav-group");
|
|
411
515
|
exports.navGroupTitleClass = hook("nav-group-title");
|
|
412
516
|
exports.navLinkClass = hook("nav-link");
|
|
517
|
+
exports.navLabelClass = hook("nav-label");
|
|
413
518
|
exports.navFlatClass = hook("nav-flat");
|
|
414
519
|
exports.navSubgroupClass = hook("nav-subgroup");
|
|
415
520
|
exports.navSubgroupTitleClass = hook("nav-subgroup-title");
|
|
@@ -585,9 +690,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
585
690
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
586
691
|
};
|
|
587
692
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
588
|
-
exports.
|
|
589
|
-
exports.
|
|
590
|
-
exports.navSubgroupTitleClass = void 0;
|
|
693
|
+
exports.metricVar = exports.metricValue = exports.metrics = exports.maxWidth = exports.minWidth = exports.breakpointPx = exports.breakpoints = exports.sansFontStack = exports.typeScale = exports.semibold = exports.medium = exports.regular = exports.fontWeights = exports.typeRoles = exports.applyScheme = exports.injectAppearanceScript = exports.appearanceInitScript = exports.decideScheme = exports.appearanceStorageKey = exports.contrastRatio = exports.hex = exports.paletteHex = exports.asPalette = exports.defaultPalette = exports.asHexColor = exports.colorVar = exports.colorHex = exports.schemes = exports.variants = exports.semanticRoles = exports.neutrals = exports.colors = exports.defaultTheme = exports.selector = exports.openedAttr = exports.replacingAttr = exports.leavingAttr = exports.trailClass = exports.foldClass = exports.colClass = exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNavClass = exports.sidebarNav = exports.themeToggleCss = exports.moonClass = exports.sunClass = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = void 0;
|
|
694
|
+
exports.navGroupTitleClass = exports.navGroupClass = exports.navNumberedClass = exports.navClass = exports.widthAttr = exports.programmaticScrollAttr = exports.phoneAttr = exports.menuCompactAttr = exports.menuOpenAttr = exports.seamClass = exports.menuClass = exports.browserClass = exports.pinnedClass = exports.workspaceClass = exports.workspaceCss = exports.workspaceOptions = exports.pragmaticThemeWithPalette = exports.pragmaticTheme = exports.syntaxCss = exports.reducedMotionCss = exports.metricCss = exports.slotCss = exports.slotStyleCss = exports.asSlotStyle = exports.slotStyle = exports.slotSelector = exports.componentSlots = exports.runwayCss = exports.chromeCss = exports.schemeCssOf = exports.schemeCss = exports.syntaxVar = exports.syntaxHex = exports.syntaxPalette = exports.syntaxKinds = exports.measure = exports.typeStyle = exports.zIndex = exports.lineHeight = exports.weight = exports.fluid = exports.basis = exports.outline = exports.borderColor = exports.border = exports.textColor = exports.color = exports.bg = exports.zValue = exports.zBands = void 0;
|
|
695
|
+
exports.carouselInitScript = exports.carouselNextClass = exports.carouselPrevClass = exports.carouselCss = exports.shareInsetVar = exports.spanTwoClass = exports.shareClass = exports.shareCss = exports.shareOptions = exports.navSubgroupTitleClass = exports.navSubgroupClass = exports.navFlatClass = exports.navLinkClass = void 0;
|
|
591
696
|
__exportStar(require("plgg-view/style"), exports);
|
|
592
697
|
var themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
593
698
|
Object.defineProperty(exports, "themeToggle", { enumerable: true, get: function () { return themeToggle_1.themeToggle; } });
|
|
@@ -605,6 +710,9 @@ var classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
|
605
710
|
Object.defineProperty(exports, "colClass", { enumerable: true, get: function () { return classHooks_1.colClass; } });
|
|
606
711
|
Object.defineProperty(exports, "foldClass", { enumerable: true, get: function () { return classHooks_1.foldClass; } });
|
|
607
712
|
Object.defineProperty(exports, "trailClass", { enumerable: true, get: function () { return classHooks_1.trailClass; } });
|
|
713
|
+
Object.defineProperty(exports, "leavingAttr", { enumerable: true, get: function () { return classHooks_1.leavingAttr; } });
|
|
714
|
+
Object.defineProperty(exports, "replacingAttr", { enumerable: true, get: function () { return classHooks_1.replacingAttr; } });
|
|
715
|
+
Object.defineProperty(exports, "openedAttr", { enumerable: true, get: function () { return classHooks_1.openedAttr; } });
|
|
608
716
|
Object.defineProperty(exports, "selector", { enumerable: true, get: function () { return classHooks_1.selector; } });
|
|
609
717
|
var Style_1 = require("src/Style/index.ts");
|
|
610
718
|
Object.defineProperty(exports, "defaultTheme", { enumerable: true, get: function () { return Style_1.defaultTheme; } });
|
|
@@ -697,6 +805,20 @@ Object.defineProperty(exports, "navLinkClass", { enumerable: true, get: function
|
|
|
697
805
|
Object.defineProperty(exports, "navFlatClass", { enumerable: true, get: function () { return classHooks_2.navFlatClass; } });
|
|
698
806
|
Object.defineProperty(exports, "navSubgroupClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupClass; } });
|
|
699
807
|
Object.defineProperty(exports, "navSubgroupTitleClass", { enumerable: true, get: function () { return classHooks_2.navSubgroupTitleClass; } });
|
|
808
|
+
var shareCss_1 = require("src/Style/usecase/shareCss.ts");
|
|
809
|
+
Object.defineProperty(exports, "shareOptions", { enumerable: true, get: function () { return shareCss_1.shareOptions; } });
|
|
810
|
+
Object.defineProperty(exports, "shareCss", { enumerable: true, get: function () { return shareCss_1.shareCss; } });
|
|
811
|
+
var classHooks_3 = require("src/Meta/model/classHooks.ts");
|
|
812
|
+
Object.defineProperty(exports, "shareClass", { enumerable: true, get: function () { return classHooks_3.shareClass; } });
|
|
813
|
+
Object.defineProperty(exports, "spanTwoClass", { enumerable: true, get: function () { return classHooks_3.spanTwoClass; } });
|
|
814
|
+
Object.defineProperty(exports, "shareInsetVar", { enumerable: true, get: function () { return classHooks_3.shareInsetVar; } });
|
|
815
|
+
var carouselCss_1 = require("src/Style/usecase/carouselCss.ts");
|
|
816
|
+
Object.defineProperty(exports, "carouselCss", { enumerable: true, get: function () { return carouselCss_1.carouselCss; } });
|
|
817
|
+
var classHooks_4 = require("src/Meta/model/classHooks.ts");
|
|
818
|
+
Object.defineProperty(exports, "carouselPrevClass", { enumerable: true, get: function () { return classHooks_4.carouselPrevClass; } });
|
|
819
|
+
Object.defineProperty(exports, "carouselNextClass", { enumerable: true, get: function () { return classHooks_4.carouselNextClass; } });
|
|
820
|
+
var carouselScript_1 = require("src/Navigate/usecase/carouselScript.ts");
|
|
821
|
+
Object.defineProperty(exports, "carouselInitScript", { enumerable: true, get: function () { return carouselScript_1.carouselInitScript; } });
|
|
700
822
|
|
|
701
823
|
},
|
|
702
824
|
"src/Component/usecase/themeToggle.ts": function (module, exports, require) {
|
|
@@ -776,7 +898,7 @@ exports.themeToggleCss = `.${classHooks_1.themeToggleClass}{display:inline-flex;
|
|
|
776
898
|
"use strict";
|
|
777
899
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
778
900
|
exports.schemeCssOf = exports.schemeCss = exports.measure = exports.typeStyle = exports.zIndex = exports.weight = exports.lineHeight = exports.fluid = exports.basis = exports.outline = exports.borderColor = exports.border = exports.textColor = exports.color = exports.bg = exports.contrastRatio = exports.applyScheme = exports.injectAppearanceScript = exports.appearanceInitScript = exports.decideScheme = exports.appearanceStorageKey = exports.hex = exports.colorHex = exports.paletteHex = exports.asPalette = exports.defaultPalette = exports.asHexColor = exports.zValue = exports.zBands = exports.metricVar = exports.metricValue = exports.metrics = exports.maxWidth = exports.minWidth = exports.breakpointPx = exports.breakpoints = exports.sansFontStack = exports.typeScale = exports.semibold = exports.medium = exports.regular = exports.fontWeights = exports.typeRoles = exports.schemes = exports.defaultTheme = exports.colorVar = exports.variants = exports.semanticRoles = exports.neutrals = exports.colors = void 0;
|
|
779
|
-
exports.workspaceCss = exports.workspaceOptions = exports.syntaxCss = exports.syntaxVar = exports.syntaxHex = exports.syntaxPalette = exports.syntaxKinds = exports.reducedMotionCss = exports.metricCss = exports.slotCss = exports.slotStyleCss = exports.asSlotStyle = exports.slotStyle = exports.slotSelector = exports.componentSlots = exports.runwayCss = exports.chromeCss = void 0;
|
|
901
|
+
exports.carouselCss = exports.shareCss = exports.shareOptions = exports.workspaceCss = exports.workspaceOptions = exports.syntaxCss = exports.syntaxVar = exports.syntaxHex = exports.syntaxPalette = exports.syntaxKinds = exports.reducedMotionCss = exports.metricCss = exports.slotCss = exports.slotStyleCss = exports.asSlotStyle = exports.slotStyle = exports.slotSelector = exports.componentSlots = exports.runwayCss = exports.chromeCss = void 0;
|
|
780
902
|
var token_1 = require("src/Style/model/token.ts");
|
|
781
903
|
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return token_1.colors; } });
|
|
782
904
|
Object.defineProperty(exports, "neutrals", { enumerable: true, get: function () { return token_1.neutrals; } });
|
|
@@ -867,6 +989,11 @@ Object.defineProperty(exports, "syntaxCss", { enumerable: true, get: function ()
|
|
|
867
989
|
var workspaceCss_1 = require("src/Style/usecase/workspaceCss.ts");
|
|
868
990
|
Object.defineProperty(exports, "workspaceOptions", { enumerable: true, get: function () { return workspaceCss_1.workspaceOptions; } });
|
|
869
991
|
Object.defineProperty(exports, "workspaceCss", { enumerable: true, get: function () { return workspaceCss_1.workspaceCss; } });
|
|
992
|
+
var shareCss_1 = require("src/Style/usecase/shareCss.ts");
|
|
993
|
+
Object.defineProperty(exports, "shareOptions", { enumerable: true, get: function () { return shareCss_1.shareOptions; } });
|
|
994
|
+
Object.defineProperty(exports, "shareCss", { enumerable: true, get: function () { return shareCss_1.shareCss; } });
|
|
995
|
+
var carouselCss_1 = require("src/Style/usecase/carouselCss.ts");
|
|
996
|
+
Object.defineProperty(exports, "carouselCss", { enumerable: true, get: function () { return carouselCss_1.carouselCss; } });
|
|
870
997
|
|
|
871
998
|
},
|
|
872
999
|
"src/Style/model/token.ts": function (module, exports, require) {
|
|
@@ -974,7 +1101,7 @@ const DEFAULT_RAW = {
|
|
|
974
1101
|
"primary-base": "#000000",
|
|
975
1102
|
"primary-text": "#000000",
|
|
976
1103
|
"primary-surface": "#f4f4f4",
|
|
977
|
-
"primary-border": "#
|
|
1104
|
+
"primary-border": "#3d3d3d",
|
|
978
1105
|
"success-base": "#047857",
|
|
979
1106
|
"success-text": "#065f46",
|
|
980
1107
|
"success-surface": "#ecfdf5",
|
|
@@ -993,15 +1120,15 @@ const DEFAULT_RAW = {
|
|
|
993
1120
|
"info-border": "#2563eb",
|
|
994
1121
|
},
|
|
995
1122
|
dark: {
|
|
996
|
-
surface: "#
|
|
997
|
-
"surface-2": "#
|
|
998
|
-
text: "#
|
|
999
|
-
muted: "#
|
|
1000
|
-
border: "#
|
|
1001
|
-
"primary-base": "#
|
|
1002
|
-
"primary-text": "#
|
|
1003
|
-
"primary-surface": "#
|
|
1004
|
-
"primary-border": "#
|
|
1123
|
+
surface: "#1b1b1b",
|
|
1124
|
+
"surface-2": "#262626",
|
|
1125
|
+
text: "#e2e2e2",
|
|
1126
|
+
muted: "#9d9d9d",
|
|
1127
|
+
border: "#353535",
|
|
1128
|
+
"primary-base": "#e2e2e2",
|
|
1129
|
+
"primary-text": "#e2e2e2",
|
|
1130
|
+
"primary-surface": "#262626",
|
|
1131
|
+
"primary-border": "#8c8c8c",
|
|
1005
1132
|
"success-base": "#34d399",
|
|
1006
1133
|
"success-text": "#34d399",
|
|
1007
1134
|
"success-surface": "#022c22",
|
|
@@ -1679,6 +1806,55 @@ const workspaceCss = (theme) => (opts) => {
|
|
|
1679
1806
|
};
|
|
1680
1807
|
exports.workspaceCss = workspaceCss;
|
|
1681
1808
|
|
|
1809
|
+
},
|
|
1810
|
+
"src/Style/usecase/shareCss.ts": function (module, exports, require) {
|
|
1811
|
+
"use strict";
|
|
1812
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1813
|
+
exports.shareCss = exports.shareOptions = void 0;
|
|
1814
|
+
exports.shareOptions = {
|
|
1815
|
+
steps: [
|
|
1816
|
+
{ min: "960px", columns: 2 },
|
|
1817
|
+
{ min: "1760px", columns: 3 },
|
|
1818
|
+
],
|
|
1819
|
+
};
|
|
1820
|
+
const shareCss = (theme) => (opts) => {
|
|
1821
|
+
const p = theme.prefix;
|
|
1822
|
+
const n = `--${p}-share-n`;
|
|
1823
|
+
const room = `(100% - var(--${p}-share-inset,0px))`;
|
|
1824
|
+
const col = `.${p}-share [data-${p}-column]`;
|
|
1825
|
+
return (`.${p}-share{${n}:1;}` +
|
|
1826
|
+
opts.steps
|
|
1827
|
+
.map((step) => `@media (min-width:${step.min}){.${p}-share{${n}:${step.columns};}}`)
|
|
1828
|
+
.join("") +
|
|
1829
|
+
`${col}{flex:1 0 calc(${room} / var(${n}));width:auto;min-width:0;}` +
|
|
1830
|
+
`${col}.${p}-span-2{flex-basis:min(${room},calc(${room} / var(${n}) * 2));}`);
|
|
1831
|
+
};
|
|
1832
|
+
exports.shareCss = shareCss;
|
|
1833
|
+
|
|
1834
|
+
},
|
|
1835
|
+
"src/Style/usecase/carouselCss.ts": function (module, exports, require) {
|
|
1836
|
+
"use strict";
|
|
1837
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1838
|
+
exports.carouselCss = void 0;
|
|
1839
|
+
const token_1 = require("src/Style/model/token.ts");
|
|
1840
|
+
const zIndex_1 = require("src/Style/model/zIndex.ts");
|
|
1841
|
+
const carouselCss = (theme) => {
|
|
1842
|
+
const p = theme.prefix;
|
|
1843
|
+
const cvar = (0, token_1.colorVar)(theme);
|
|
1844
|
+
const both = `.${p}-carousel-prev,.${p}-carousel-next`;
|
|
1845
|
+
const each = (state) => `.${p}-carousel-prev${state},.${p}-carousel-next${state}`;
|
|
1846
|
+
return (`${both}{position:absolute;top:50%;z-index:${(0, zIndex_1.zValue)("chrome")};width:2.25rem;height:2.25rem;margin-top:-1.125rem;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid ${cvar("text")};background:${cvar("surface")};color:${cvar("text")};cursor:pointer;transition:background-color .15s ease,color .15s ease,opacity .2s ease;}` +
|
|
1847
|
+
`${each("[hidden]")}{display:none;}` +
|
|
1848
|
+
`.${p}-carousel-prev{left:calc(var(--${p}-share-inset,0px) + .6rem);}` +
|
|
1849
|
+
`.${p}-carousel-next{right:.6rem;}` +
|
|
1850
|
+
`${each("::before")}{content:"";width:.5rem;height:.5rem;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;}` +
|
|
1851
|
+
`.${p}-carousel-prev::before{transform:translateX(.12rem) rotate(-135deg);}` +
|
|
1852
|
+
`.${p}-carousel-next::before{transform:translateX(-.12rem) rotate(45deg);}` +
|
|
1853
|
+
`${each(":hover")},${each(":focus-visible")}{background:${cvar("text")};color:${cvar("surface")};outline:0;}` +
|
|
1854
|
+
`@media (prefers-reduced-motion:reduce){${both}{transition:none;}}`);
|
|
1855
|
+
};
|
|
1856
|
+
exports.carouselCss = carouselCss;
|
|
1857
|
+
|
|
1682
1858
|
},
|
|
1683
1859
|
"src/Component/model/interaction.ts": function (module, exports, require) {
|
|
1684
1860
|
"use strict";
|
|
@@ -1717,6 +1893,7 @@ exports.sidebarNavClass = {
|
|
|
1717
1893
|
group: classHooks_1.navGroupClass,
|
|
1718
1894
|
groupTitle: classHooks_1.navGroupTitleClass,
|
|
1719
1895
|
link: classHooks_1.navLinkClass,
|
|
1896
|
+
label: classHooks_1.navLabelClass,
|
|
1720
1897
|
flat: classHooks_1.navFlatClass,
|
|
1721
1898
|
subgroup: classHooks_1.navSubgroupClass,
|
|
1722
1899
|
subgroupTitle: classHooks_1.navSubgroupTitleClass,
|
|
@@ -1733,7 +1910,9 @@ const sidebarNav = (props) => {
|
|
|
1733
1910
|
(0, plgg_view_1.attr)("href", props.resolve(href)),
|
|
1734
1911
|
(0, plgg_view_1.class_)(c.link),
|
|
1735
1912
|
];
|
|
1736
|
-
const leaf = (item) => (0, plgg_1.matchOption)(() => (0, plgg_view_1.span)([(0, plgg_view_1.class_)(c.flat)], [(0, plgg_view_1.text)(item.label)]), (href) => (0, plgg_view_1.a)(linkAttrs(href), [
|
|
1913
|
+
const leaf = (item) => (0, plgg_1.matchOption)(() => (0, plgg_view_1.span)([(0, plgg_view_1.class_)(c.flat)], [(0, plgg_view_1.text)(item.label)]), (href) => (0, plgg_view_1.a)(linkAttrs(href), [
|
|
1914
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(c.label)], [(0, plgg_view_1.text)(item.label)]),
|
|
1915
|
+
]))(item.href);
|
|
1737
1916
|
const renderItem = (item) => item.children.length === 0
|
|
1738
1917
|
? leaf(item)
|
|
1739
1918
|
: (0, plgg_view_1.div)([(0, plgg_view_1.class_)(c.subgroup)], [
|
|
@@ -1746,15 +1925,8 @@ const sidebarNav = (props) => {
|
|
|
1746
1925
|
holdsCurrent(item.children));
|
|
1747
1926
|
const group = (g) => props.toggle
|
|
1748
1927
|
? (0, plgg_view_1.details)(holdsCurrent(g.items)
|
|
1749
|
-
? [
|
|
1750
|
-
|
|
1751
|
-
(0, plgg_view_1.attr)("name", c.group),
|
|
1752
|
-
(0, plgg_view_1.attr)("open", ""),
|
|
1753
|
-
]
|
|
1754
|
-
: [
|
|
1755
|
-
(0, plgg_view_1.class_)(c.group),
|
|
1756
|
-
(0, plgg_view_1.attr)("name", c.group),
|
|
1757
|
-
], [
|
|
1928
|
+
? [(0, plgg_view_1.class_)(c.group), (0, plgg_view_1.attr)("open", "")]
|
|
1929
|
+
: [(0, plgg_view_1.class_)(c.group)], [
|
|
1758
1930
|
(0, plgg_view_1.summary)([(0, plgg_view_1.class_)(c.groupTitle)], [(0, plgg_view_1.text)(g.label)]),
|
|
1759
1931
|
...g.items.map(renderItem),
|
|
1760
1932
|
])
|
|
@@ -1795,6 +1967,7 @@ const sidebarNavCss = (theme) => {
|
|
|
1795
1967
|
border-bottom:1px solid ${cvar("border")};
|
|
1796
1968
|
font-size:0.875rem;line-height:1.45;
|
|
1797
1969
|
color:${cvar("text")};
|
|
1970
|
+
text-decoration:none;
|
|
1798
1971
|
}
|
|
1799
1972
|
.${c.link}:hover{
|
|
1800
1973
|
background:${cvar("surface-2")};
|
|
@@ -1900,6 +2073,61 @@ exports.pragmaticTheme = Style_1.defaultTheme;
|
|
|
1900
2073
|
const pragmaticThemeWithPalette = (paletteInput) => (0, plgg_1.matchResult)((e) => (0, plgg_1.err)(e), (palette) => (0, plgg_1.ok)({ ...exports.pragmaticTheme, palette }))((0, Style_1.asPalette)(paletteInput));
|
|
1901
2074
|
exports.pragmaticThemeWithPalette = pragmaticThemeWithPalette;
|
|
1902
2075
|
|
|
2076
|
+
},
|
|
2077
|
+
"src/Navigate/usecase/carouselScript.ts": function (module, exports, require) {
|
|
2078
|
+
"use strict";
|
|
2079
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2080
|
+
exports.carouselInitScript = void 0;
|
|
2081
|
+
const marker_1 = require("src/Navigate/model/marker.ts");
|
|
2082
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
2083
|
+
const q = (value) => JSON.stringify(value);
|
|
2084
|
+
exports.carouselInitScript = "(function(){" +
|
|
2085
|
+
`var s=document.querySelector(${q("." + classHooks_1.shareClass)});` +
|
|
2086
|
+
"if(!s||!s.parentNode){return;}" +
|
|
2087
|
+
`var C=${q(marker_1.columnAttr)},LV=${q(classHooks_1.leavingAttr)};` +
|
|
2088
|
+
"var R0=window.matchMedia&&window.matchMedia('(prefers-reduced-motion:reduce)').matches;" +
|
|
2089
|
+
"function cols(){return s.querySelectorAll('['+C+']:not(['+LV+'])');}" +
|
|
2090
|
+
"function edge(){return s.getBoundingClientRect().left+(parseFloat(getComputedStyle(s).scrollPaddingLeft)||0);}" +
|
|
2091
|
+
"function step(dir){var c=cols(),L=edge(),t=null,i;" +
|
|
2092
|
+
"if(dir>0){for(i=0;i<c.length;i++){if(c[i].getBoundingClientRect().left>L+1){t=c[i];break;}}}" +
|
|
2093
|
+
"else{for(i=c.length-1;i>=0;i--){if(c[i].getBoundingClientRect().left<L-1){t=c[i];break;}}}" +
|
|
2094
|
+
"if(t){s.scrollBy({left:t.getBoundingClientRect().left-L,behavior:R0?'auto':'smooth'});}}" +
|
|
2095
|
+
"function make(cls,label,dir){var b=document.createElement('button');" +
|
|
2096
|
+
"b.type='button';b.className=cls;b.setAttribute('aria-label',label);b.hidden=true;" +
|
|
2097
|
+
"b.addEventListener('click',function(){step(dir);});s.parentNode.appendChild(b);return b;}" +
|
|
2098
|
+
`var prev=make(${q(classHooks_1.carouselPrevClass)},'前の列へ',-1);` +
|
|
2099
|
+
`var next=make(${q(classHooks_1.carouselNextClass)},'次の列へ',1);` +
|
|
2100
|
+
"function update(){var max=s.scrollWidth-s.clientWidth;" +
|
|
2101
|
+
"prev.hidden=s.scrollLeft<=1;next.hidden=s.scrollLeft>=max-1;}" +
|
|
2102
|
+
"s.addEventListener('scroll',update,{passive:true});" +
|
|
2103
|
+
"s.addEventListener('animationend',update);" +
|
|
2104
|
+
"window.addEventListener('resize',update);" +
|
|
2105
|
+
"document.addEventListener('plgg:columns',function(){update();setTimeout(update,450);});" +
|
|
2106
|
+
"update();})();";
|
|
2107
|
+
|
|
2108
|
+
},
|
|
2109
|
+
"src/Navigate/model/marker.ts": function (module, exports, require) {
|
|
2110
|
+
"use strict";
|
|
2111
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2112
|
+
exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
2113
|
+
const plgg_1 = require("plgg");
|
|
2114
|
+
const plgg_view_1 = require("plgg-view");
|
|
2115
|
+
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
2116
|
+
const identity_1 = require("src/Meta/model/identity.ts");
|
|
2117
|
+
exports.stripAttr = `data-${identity_1.cssPrefix}-strip`;
|
|
2118
|
+
exports.columnAttr = `data-${identity_1.cssPrefix}-column`;
|
|
2119
|
+
exports.spanAttr = `data-${identity_1.cssPrefix}-span`;
|
|
2120
|
+
exports.navHookName = `__${identity_1.cssPrefix}Nav`;
|
|
2121
|
+
const strip = (parts, children) => (0, combinators_1.rowWith)([(0, plgg_view_1.attr)(exports.stripAttr, "")], parts, children);
|
|
2122
|
+
exports.strip = strip;
|
|
2123
|
+
const documentColumn = (route, span, parts, children) => (0, combinators_1.columnWith)([
|
|
2124
|
+
(0, plgg_view_1.attr)(exports.columnAttr, route),
|
|
2125
|
+
...(0, plgg_1.matchOption)(() => [], (quoted) => [
|
|
2126
|
+
(0, plgg_view_1.attr)(exports.spanAttr, quoted),
|
|
2127
|
+
])(span),
|
|
2128
|
+
], parts, children);
|
|
2129
|
+
exports.documentColumn = documentColumn;
|
|
2130
|
+
|
|
1903
2131
|
},
|
|
1904
2132
|
"src/Layout/model/geometry.ts": function (module, exports, require) {
|
|
1905
2133
|
"use strict";
|
|
@@ -2122,7 +2350,7 @@ exports.savePreference = savePreference;
|
|
|
2122
2350
|
"src/Navigate/index.ts": function (module, exports, require) {
|
|
2123
2351
|
"use strict";
|
|
2124
2352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2125
|
-
exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = exports.injectNavigationScript = exports.navigationInitScript = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = exports.compositionHref = exports.compositionQuery = exports.decodeComposition = exports.escapeChar = exports.fieldSeparator = exports.entrySeparator = exports.spanParam = exports.restParam = exports.columnsOf = exports.soloComposition = exports.columnWithSpan = exports.columnOf = void 0;
|
|
2353
|
+
exports.carouselInitScript = exports.parseSteps = exports.printSteps = exports.trailQuery = exports.decodeTrail = exports.encodeTrail = exports.stepSeparator = exports.trailParam = exports.restep = exports.stepFrom = exports.foldTrail = exports.settledTrail = exports.resolveTrail = exports.injectNavigationScript = exports.navigationInitScript = exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = exports.compositionHref = exports.compositionQuery = exports.decodeComposition = exports.escapeChar = exports.fieldSeparator = exports.entrySeparator = exports.spanParam = exports.restParam = exports.columnsOf = exports.soloComposition = exports.columnWithSpan = exports.columnOf = void 0;
|
|
2126
2354
|
var Composition_1 = require("src/Navigate/model/Composition.ts");
|
|
2127
2355
|
Object.defineProperty(exports, "columnOf", { enumerable: true, get: function () { return Composition_1.columnOf; } });
|
|
2128
2356
|
Object.defineProperty(exports, "columnWithSpan", { enumerable: true, get: function () { return Composition_1.columnWithSpan; } });
|
|
@@ -2161,6 +2389,8 @@ Object.defineProperty(exports, "decodeTrail", { enumerable: true, get: function
|
|
|
2161
2389
|
Object.defineProperty(exports, "trailQuery", { enumerable: true, get: function () { return trailUrl_1.trailQuery; } });
|
|
2162
2390
|
Object.defineProperty(exports, "printSteps", { enumerable: true, get: function () { return trailUrl_1.printSteps; } });
|
|
2163
2391
|
Object.defineProperty(exports, "parseSteps", { enumerable: true, get: function () { return trailUrl_1.parseSteps; } });
|
|
2392
|
+
var carouselScript_1 = require("src/Navigate/usecase/carouselScript.ts");
|
|
2393
|
+
Object.defineProperty(exports, "carouselInitScript", { enumerable: true, get: function () { return carouselScript_1.carouselInitScript; } });
|
|
2164
2394
|
|
|
2165
2395
|
},
|
|
2166
2396
|
"src/Navigate/model/Composition.ts": function (module, exports, require) {
|
|
@@ -2262,29 +2492,6 @@ const compositionHref = (composition) => composition.head.route +
|
|
|
2262
2492
|
(0, exports.compositionQuery)(composition);
|
|
2263
2493
|
exports.compositionHref = compositionHref;
|
|
2264
2494
|
|
|
2265
|
-
},
|
|
2266
|
-
"src/Navigate/model/marker.ts": function (module, exports, require) {
|
|
2267
|
-
"use strict";
|
|
2268
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2269
|
-
exports.documentColumn = exports.strip = exports.navHookName = exports.spanAttr = exports.columnAttr = exports.stripAttr = void 0;
|
|
2270
|
-
const plgg_1 = require("plgg");
|
|
2271
|
-
const plgg_view_1 = require("plgg-view");
|
|
2272
|
-
const combinators_1 = require("src/Layout/usecase/combinators.ts");
|
|
2273
|
-
const identity_1 = require("src/Meta/model/identity.ts");
|
|
2274
|
-
exports.stripAttr = `data-${identity_1.cssPrefix}-strip`;
|
|
2275
|
-
exports.columnAttr = `data-${identity_1.cssPrefix}-column`;
|
|
2276
|
-
exports.spanAttr = `data-${identity_1.cssPrefix}-span`;
|
|
2277
|
-
exports.navHookName = `__${identity_1.cssPrefix}Nav`;
|
|
2278
|
-
const strip = (parts, children) => (0, combinators_1.rowWith)([(0, plgg_view_1.attr)(exports.stripAttr, "")], parts, children);
|
|
2279
|
-
exports.strip = strip;
|
|
2280
|
-
const documentColumn = (route, span, parts, children) => (0, combinators_1.columnWith)([
|
|
2281
|
-
(0, plgg_view_1.attr)(exports.columnAttr, route),
|
|
2282
|
-
...(0, plgg_1.matchOption)(() => [], (quoted) => [
|
|
2283
|
-
(0, plgg_view_1.attr)(exports.spanAttr, quoted),
|
|
2284
|
-
])(span),
|
|
2285
|
-
], parts, children);
|
|
2286
|
-
exports.documentColumn = documentColumn;
|
|
2287
|
-
|
|
2288
2495
|
},
|
|
2289
2496
|
"src/Navigate/usecase/navigationScript.ts": function (module, exports, require) {
|
|
2290
2497
|
"use strict";
|
|
@@ -2297,6 +2504,7 @@ const q = (value) => JSON.stringify(value);
|
|
|
2297
2504
|
exports.navigationInitScript = "(function(){" +
|
|
2298
2505
|
`var S=${q(marker_1.stripAttr)},C=${q(marker_1.columnAttr)},P=${q(marker_1.spanAttr)};` +
|
|
2299
2506
|
`var FC=${q(classHooks_1.foldClass)},TC=${q(classHooks_1.trailClass)};` +
|
|
2507
|
+
`var LV=${q(classHooks_1.leavingAttr)},RP=${q(classHooks_1.replacingAttr)},OP=${q(classHooks_1.openedAttr)};` +
|
|
2300
2508
|
"var R0=window.matchMedia&&window.matchMedia('(prefers-reduced-motion:reduce)').matches;" +
|
|
2301
2509
|
`var R=${q(compositionUrl_1.restParam)},Q=${q(compositionUrl_1.spanParam)};` +
|
|
2302
2510
|
`var E=${q(compositionUrl_1.escapeChar)},N=${q(compositionUrl_1.entrySeparator)},F=${q(compositionUrl_1.fieldSeparator)};` +
|
|
@@ -2323,13 +2531,20 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2323
2531
|
"var a=h?h.getAttribute(C)||'':'';var p=window.location.pathname;" +
|
|
2324
2532
|
"return a&&p.length>a.length&&p.slice(p.length-a.length)===a" +
|
|
2325
2533
|
"?p.slice(0,p.length-a.length):'';})();" +
|
|
2326
|
-
"function cols(){return document.querySelectorAll('['+C+']');}" +
|
|
2534
|
+
"function cols(){return document.querySelectorAll('['+C+']:not(['+LV+'])');}" +
|
|
2327
2535
|
"function changed(){if(document.dispatchEvent){document.dispatchEvent(new Event('plgg:columns'));}}" +
|
|
2328
|
-
"function
|
|
2329
|
-
"
|
|
2536
|
+
"function leave(n){n.setAttribute(LV,'');" +
|
|
2537
|
+
"var a=R0||!n.getAnimations?[]:n.getAnimations();" +
|
|
2538
|
+
"if(!a.length){n.remove();return;}" +
|
|
2539
|
+
"var done=function(){n.remove();};" +
|
|
2540
|
+
"Promise.all(a.map(function(x){return x.finished;})).then(done,done);}" +
|
|
2541
|
+
"function truncate(at,now){var c=cols();" +
|
|
2542
|
+
"for(var i=c.length-1;i>at;i--){if(now){c[i].remove();}else{leave(c[i]);}}sync();changed();}" +
|
|
2330
2543
|
"function place(node,at){var c=cols();var prev=c[at];" +
|
|
2331
2544
|
"prev.parentNode.insertBefore(node,prev.nextSibling);" +
|
|
2332
|
-
"node.scrollIntoView({inline:'nearest',block:'nearest',behavior:R0?'auto':'smooth'});" +
|
|
2545
|
+
"var see=function(){node.scrollIntoView({inline:'nearest',block:'nearest',behavior:R0?'auto':'smooth'});};" +
|
|
2546
|
+
"see();" +
|
|
2547
|
+
"node.addEventListener('animationend',function(ev){if(ev.target===node){see();}},{once:true});" +
|
|
2333
2548
|
"showMark(node);sync();changed();}" +
|
|
2334
2549
|
"function showMark(node){var m=node.querySelector('mark');" +
|
|
2335
2550
|
"if(m){m.scrollIntoView({block:'center'});}}" +
|
|
@@ -2352,7 +2567,9 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2352
2567
|
"function openFrom(at,route,span){" +
|
|
2353
2568
|
"var url=urlFor(entries().slice(0,at).concat([entryOf(route,span)]));" +
|
|
2354
2569
|
"return fetchCol(route,span).then(function(col){" +
|
|
2355
|
-
"
|
|
2570
|
+
"var rep=cols().length>at+1;" +
|
|
2571
|
+
"if(rep){col.setAttribute(RP,'');}" +
|
|
2572
|
+
"truncate(at,rep);place(col,at);" +
|
|
2356
2573
|
"window.history.pushState(null,'',url);return true;}).catch(function(){" +
|
|
2357
2574
|
"window.location.assign(url);return false;});}" +
|
|
2358
2575
|
"function last(){return cols().length-1;}" +
|
|
@@ -2383,7 +2600,8 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2383
2600
|
"var e=t[i];var at=i-1;i++;" +
|
|
2384
2601
|
"return fetchCol(routeOf(e),spanOf(e)).then(function(col){" +
|
|
2385
2602
|
"place(col,at);return step();});};" +
|
|
2386
|
-
"return step().catch(function(){
|
|
2603
|
+
"return step().catch(function(){" +
|
|
2604
|
+
"window.history.replaceState(null,'',urlFor(current().slice(1)));sync();});}" +
|
|
2387
2605
|
"function fold(at){truncate(at-1);" +
|
|
2388
2606
|
"window.history.pushState(null,'',urlFor(entries().slice(0,at-1)));}" +
|
|
2389
2607
|
"function titleOf(c){var hd=c.querySelector(':scope>header');" +
|
|
@@ -2392,7 +2610,7 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2392
2610
|
"function sync(){var c=cols();" +
|
|
2393
2611
|
"for(var i=0;i<c.length;i++){(function(col,i){" +
|
|
2394
2612
|
"var b=col.querySelector('.'+FC);" +
|
|
2395
|
-
"if(i===0){if(b){b.remove();}return;}" +
|
|
2613
|
+
"if(i===0||i!==c.length-1){if(b){b.remove();}return;}" +
|
|
2396
2614
|
"if(!b){b=document.createElement('button');b.type='button';" +
|
|
2397
2615
|
"b.className=FC;b.setAttribute('aria-label','この列を閉じる');" +
|
|
2398
2616
|
"b.textContent='\u00d7';var hd=col.querySelector(':scope>header');" +
|
|
@@ -2411,6 +2629,12 @@ exports.navigationInitScript = "(function(){" +
|
|
|
2411
2629
|
"a.setAttribute('data-col',String(j));" +
|
|
2412
2630
|
"t.appendChild(a);})(c[j],j);}}" +
|
|
2413
2631
|
"var bare=function(p){return p.length>1?p.replace(/\\/+$/,''):p;};" +
|
|
2632
|
+
"for(var o=0;o<c.length;o++){" +
|
|
2633
|
+
"var nx=c[o+1];var want=nx?bare(B+(nx.getAttribute(C)||'')):null;" +
|
|
2634
|
+
"var as=c[o].querySelectorAll('a[href]');" +
|
|
2635
|
+
"for(var u=0;u<as.length;u++){var k=as[u];" +
|
|
2636
|
+
"if(want!==null&&k.origin===window.location.origin&&bare(k.pathname)===want){k.setAttribute(OP,'');}" +
|
|
2637
|
+
"else if(k.hasAttribute(OP)){k.removeAttribute(OP);}}}" +
|
|
2414
2638
|
"var r=bare(c.length?B+(c[c.length-1].getAttribute(C)||''):location.pathname);" +
|
|
2415
2639
|
"var ls=document.querySelectorAll('a[href]');" +
|
|
2416
2640
|
"for(var m=0;m<ls.length;m++){var l=ls[m];" +
|
|
@@ -2517,7 +2741,7 @@ exports.parseSteps = parseSteps;
|
|
|
2517
2741
|
"src/Component/index.ts": function (module, exports, require) {
|
|
2518
2742
|
"use strict";
|
|
2519
2743
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2520
|
-
exports.toaster = exports.toast = exports.tones = exports.confirmDialog = exports.declaredForm = exports.fieldControl = exports.checkbox = exports.selectInput = exports.textArea = exports.textInput = exports.breadcrumb = exports.colHead = exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNavClass = exports.sidebarNav = exports.navTree = exports.themeToggleCss = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = exports.prose = exports.heading = exports.textLink = exports.button = exports.pressDim = exports.hoverDim = exports.focusRing = void 0;
|
|
2744
|
+
exports.toggle = exports.entry = exports.choice = exports.propertyRow = exports.propertyList = exports.toaster = exports.toast = exports.tones = exports.confirmDialog = exports.declaredForm = exports.fieldControl = exports.checkbox = exports.selectInput = exports.textArea = exports.textInput = exports.breadcrumb = exports.colHead = exports.sidebarNavRevealScript = exports.sidebarNavCss = exports.sidebarNavClass = exports.sidebarNav = exports.navTree = exports.themeToggleCss = exports.themeToggleClass = exports.staticThemeToggle = exports.themeToggle = exports.prose = exports.heading = exports.textLink = exports.button = exports.pressDim = exports.hoverDim = exports.focusRing = void 0;
|
|
2521
2745
|
var interaction_1 = require("src/Component/model/interaction.ts");
|
|
2522
2746
|
Object.defineProperty(exports, "focusRing", { enumerable: true, get: function () { return interaction_1.focusRing; } });
|
|
2523
2747
|
Object.defineProperty(exports, "hoverDim", { enumerable: true, get: function () { return interaction_1.hoverDim; } });
|
|
@@ -2562,6 +2786,12 @@ var toast_1 = require("src/Component/usecase/toast.ts");
|
|
|
2562
2786
|
Object.defineProperty(exports, "tones", { enumerable: true, get: function () { return toast_1.tones; } });
|
|
2563
2787
|
Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return toast_1.toast; } });
|
|
2564
2788
|
Object.defineProperty(exports, "toaster", { enumerable: true, get: function () { return toast_1.toaster; } });
|
|
2789
|
+
var properties_1 = require("src/Component/usecase/properties.ts");
|
|
2790
|
+
Object.defineProperty(exports, "propertyList", { enumerable: true, get: function () { return properties_1.propertyList; } });
|
|
2791
|
+
Object.defineProperty(exports, "propertyRow", { enumerable: true, get: function () { return properties_1.propertyRow; } });
|
|
2792
|
+
Object.defineProperty(exports, "choice", { enumerable: true, get: function () { return properties_1.choice; } });
|
|
2793
|
+
Object.defineProperty(exports, "entry", { enumerable: true, get: function () { return properties_1.entry; } });
|
|
2794
|
+
Object.defineProperty(exports, "toggle", { enumerable: true, get: function () { return properties_1.toggle; } });
|
|
2565
2795
|
|
|
2566
2796
|
},
|
|
2567
2797
|
"src/Component/usecase/button.ts": function (module, exports, require) {
|
|
@@ -2576,7 +2806,7 @@ const button = (props) => (0, plgg_view_1.button)([
|
|
|
2576
2806
|
...(props.disabled
|
|
2577
2807
|
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
2578
2808
|
: [(0, plgg_view_1.onClick)(props.onPress)]),
|
|
2579
|
-
(0, styleEntry_1.style_)((0, styleEntry_1.bg)("primary-base"), (0, styleEntry_1.textColor)("surface"), (0, styleEntry_1.px)(4), (0, styleEntry_1.py)(2), (0, styleEntry_1.
|
|
2809
|
+
(0, styleEntry_1.style_)((0, styleEntry_1.bg)("primary-base"), (0, styleEntry_1.textColor)("surface"), (0, styleEntry_1.px)(4), (0, styleEntry_1.py)(2), (0, styleEntry_1.weight)(styleEntry_1.medium), interaction_1.focusRing, ...(props.disabled
|
|
2580
2810
|
? [
|
|
2581
2811
|
(0, styleEntry_1.decl)("cursor", "not-allowed"),
|
|
2582
2812
|
(0, styleEntry_1.decl)("opacity", "0.6"),
|
|
@@ -3041,6 +3271,79 @@ const toaster = (toasts) => (0, plgg_view_1.slot)([
|
|
|
3041
3271
|
], toasts.map((t) => (0, exports.toast)(t)));
|
|
3042
3272
|
exports.toaster = toaster;
|
|
3043
3273
|
|
|
3274
|
+
},
|
|
3275
|
+
"src/Component/usecase/properties.ts": function (module, exports, require) {
|
|
3276
|
+
"use strict";
|
|
3277
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3278
|
+
exports.toggle = exports.entry = exports.choice = exports.propertyRow = exports.propertyList = void 0;
|
|
3279
|
+
const plgg_1 = require("plgg");
|
|
3280
|
+
const plgg_view_1 = require("plgg-view");
|
|
3281
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
3282
|
+
const propertyList = (label, rows) => (0, plgg_view_1.el)("div", [
|
|
3283
|
+
(0, plgg_view_1.class_)(classHooks_1.propsClass),
|
|
3284
|
+
(0, plgg_view_1.attr)("role", "group"),
|
|
3285
|
+
(0, plgg_view_1.attr)("aria-label", label),
|
|
3286
|
+
], rows);
|
|
3287
|
+
exports.propertyList = propertyList;
|
|
3288
|
+
const propertyRow = (name, label, control) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.class_)(classHooks_1.propClass)], [
|
|
3289
|
+
(0, plgg_view_1.el)("label", [
|
|
3290
|
+
(0, plgg_view_1.class_)(classHooks_1.propLabelClass),
|
|
3291
|
+
(0, plgg_view_1.attr)("for", name),
|
|
3292
|
+
], [(0, plgg_view_1.text)(label)]),
|
|
3293
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.class_)(classHooks_1.propControlClass)], [control]),
|
|
3294
|
+
]);
|
|
3295
|
+
exports.propertyRow = propertyRow;
|
|
3296
|
+
const off = (disabled) => disabled ? [(0, plgg_view_1.attr)("disabled", "")] : [];
|
|
3297
|
+
const choice = (props) => (0, plgg_view_1.el)("select", [
|
|
3298
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
3299
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
3300
|
+
(0, plgg_view_1.class_)(classHooks_1.inputClass),
|
|
3301
|
+
...off(props.disabled),
|
|
3302
|
+
(0, plgg_view_1.onChange)(props.onChange),
|
|
3303
|
+
], props.options.map((o) => (0, plgg_view_1.el)("option", o.value === props.value
|
|
3304
|
+
? [
|
|
3305
|
+
(0, plgg_view_1.attr)("value", o.value),
|
|
3306
|
+
(0, plgg_view_1.attr)("selected", ""),
|
|
3307
|
+
]
|
|
3308
|
+
: [(0, plgg_view_1.attr)("value", o.value)], [(0, plgg_view_1.text)(o.label)])));
|
|
3309
|
+
exports.choice = choice;
|
|
3310
|
+
const entry = (props) => (0, plgg_view_1.el)("input", [
|
|
3311
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
3312
|
+
(0, plgg_view_1.attr)("name", props.name),
|
|
3313
|
+
(0, plgg_view_1.attr)("type", "text"),
|
|
3314
|
+
(0, plgg_view_1.attr)("value", props.value),
|
|
3315
|
+
(0, plgg_view_1.class_)(classHooks_1.inputClass),
|
|
3316
|
+
...(props.numeric
|
|
3317
|
+
? [(0, plgg_view_1.attr)("inputmode", "numeric")]
|
|
3318
|
+
: []),
|
|
3319
|
+
...(0, plgg_1.matchOption)(() => [], (hint) => [
|
|
3320
|
+
(0, plgg_view_1.attr)("placeholder", hint),
|
|
3321
|
+
])(props.placeholder),
|
|
3322
|
+
...off(props.disabled),
|
|
3323
|
+
(0, plgg_view_1.onInput)(props.onInput),
|
|
3324
|
+
], []);
|
|
3325
|
+
exports.entry = entry;
|
|
3326
|
+
const toggle = (props) => (0, plgg_view_1.el)("button", [
|
|
3327
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
3328
|
+
(0, plgg_view_1.attr)("id", props.name),
|
|
3329
|
+
(0, plgg_view_1.attr)("role", "switch"),
|
|
3330
|
+
(0, plgg_view_1.attr)("aria-checked", props.on ? "true" : "false"),
|
|
3331
|
+
(0, plgg_view_1.class_)(classHooks_1.switchClass),
|
|
3332
|
+
...(props.disabled
|
|
3333
|
+
? [(0, plgg_view_1.attr)("disabled", "")]
|
|
3334
|
+
: [(0, plgg_view_1.onClick)(props.onToggle)]),
|
|
3335
|
+
], [
|
|
3336
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.class_)(classHooks_1.switchTrackClass)], [
|
|
3337
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.class_)(classHooks_1.switchThumbClass)], []),
|
|
3338
|
+
]),
|
|
3339
|
+
(0, plgg_view_1.el)("span", [(0, plgg_view_1.class_)(classHooks_1.switchLabelClass)], [
|
|
3340
|
+
(0, plgg_view_1.text)(props.on
|
|
3341
|
+
? props.onLabel
|
|
3342
|
+
: props.offLabel),
|
|
3343
|
+
]),
|
|
3344
|
+
]);
|
|
3345
|
+
exports.toggle = toggle;
|
|
3346
|
+
|
|
3044
3347
|
},
|
|
3045
3348
|
"src/Form/index.ts": function (module, exports, require) {
|
|
3046
3349
|
"use strict";
|
|
@@ -5694,6 +5997,521 @@ const detectModelContext = (candidate) => {
|
|
|
5694
5997
|
};
|
|
5695
5998
|
exports.detectModelContext = detectModelContext;
|
|
5696
5999
|
|
|
6000
|
+
},
|
|
6001
|
+
"src/Shell/index.ts": function (module, exports, require) {
|
|
6002
|
+
"use strict";
|
|
6003
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6004
|
+
exports.asAppearance = exports.appearanceCss = exports.soft = exports.monochrome = exports.systemCss = exports.kitAppearanceCss = exports.kitSystemCss = exports.kitCss = exports.shell = void 0;
|
|
6005
|
+
var shell_1 = require("src/Shell/usecase/shell.ts");
|
|
6006
|
+
Object.defineProperty(exports, "shell", { enumerable: true, get: function () { return shell_1.shell; } });
|
|
6007
|
+
var kit_1 = require("src/Shell/usecase/kit.ts");
|
|
6008
|
+
Object.defineProperty(exports, "kitCss", { enumerable: true, get: function () { return kit_1.kitCss; } });
|
|
6009
|
+
Object.defineProperty(exports, "kitSystemCss", { enumerable: true, get: function () { return kit_1.kitSystemCss; } });
|
|
6010
|
+
Object.defineProperty(exports, "kitAppearanceCss", { enumerable: true, get: function () { return kit_1.kitAppearanceCss; } });
|
|
6011
|
+
var systemCss_1 = require("src/System/usecase/systemCss.ts");
|
|
6012
|
+
Object.defineProperty(exports, "systemCss", { enumerable: true, get: function () { return systemCss_1.systemCss; } });
|
|
6013
|
+
var appearance_1 = require("src/Appearance/model/appearance.ts");
|
|
6014
|
+
Object.defineProperty(exports, "monochrome", { enumerable: true, get: function () { return appearance_1.monochrome; } });
|
|
6015
|
+
Object.defineProperty(exports, "soft", { enumerable: true, get: function () { return appearance_1.soft; } });
|
|
6016
|
+
var appearanceCss_1 = require("src/Appearance/usecase/appearanceCss.ts");
|
|
6017
|
+
Object.defineProperty(exports, "appearanceCss", { enumerable: true, get: function () { return appearanceCss_1.appearanceCss; } });
|
|
6018
|
+
var asAppearance_1 = require("src/Appearance/usecase/asAppearance.ts");
|
|
6019
|
+
Object.defineProperty(exports, "asAppearance", { enumerable: true, get: function () { return asAppearance_1.asAppearance; } });
|
|
6020
|
+
|
|
6021
|
+
},
|
|
6022
|
+
"src/Shell/usecase/shell.ts": function (module, exports, require) {
|
|
6023
|
+
"use strict";
|
|
6024
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6025
|
+
exports.shell = void 0;
|
|
6026
|
+
const plgg_1 = require("plgg");
|
|
6027
|
+
const plgg_view_1 = require("plgg-view");
|
|
6028
|
+
const marker_1 = require("src/Navigate/model/marker.ts");
|
|
6029
|
+
const sidebarNav_1 = require("src/Component/usecase/sidebarNav.ts");
|
|
6030
|
+
const classHooks_1 = require("src/Meta/model/classHooks.ts");
|
|
6031
|
+
const plgg_2 = require("plgg");
|
|
6032
|
+
const head = (children) => (0, plgg_view_1.el)("header", [(0, plgg_view_1.class_)(classHooks_1.shellHeadClass)], children);
|
|
6033
|
+
const body = (children) => (0, plgg_view_1.el)("div", [(0, plgg_view_1.class_)(classHooks_1.shellBodyClass)], children);
|
|
6034
|
+
const page = (p) => (0, marker_1.documentColumn)(p.route, (0, plgg_2.none)(), p.wide
|
|
6035
|
+
? [classHooks_1.shellPageClass, classHooks_1.spanTwoClass]
|
|
6036
|
+
: [classHooks_1.shellPageClass], [
|
|
6037
|
+
head([
|
|
6038
|
+
(0, plgg_view_1.span)([(0, plgg_view_1.class_)(classHooks_1.shellTitleClass)], [(0, plgg_view_1.text)(p.title)]),
|
|
6039
|
+
...(0, plgg_1.matchOption)(() => [], (to) => [
|
|
6040
|
+
(0, plgg_view_1.a)([
|
|
6041
|
+
(0, plgg_view_1.href)(to),
|
|
6042
|
+
(0, plgg_view_1.class_)(classHooks_1.foldClass),
|
|
6043
|
+
(0, plgg_view_1.attr)("aria-label", "この列を閉じる"),
|
|
6044
|
+
], [(0, plgg_view_1.text)("×")]),
|
|
6045
|
+
])(p.close),
|
|
6046
|
+
]),
|
|
6047
|
+
body([
|
|
6048
|
+
(0, plgg_view_1.el)("main", [(0, plgg_view_1.class_)(classHooks_1.docClass)], p.body),
|
|
6049
|
+
]),
|
|
6050
|
+
]);
|
|
6051
|
+
const brandAttrs = (props, cls) => props.atHome
|
|
6052
|
+
? [
|
|
6053
|
+
(0, plgg_view_1.href)(props.home),
|
|
6054
|
+
(0, plgg_view_1.class_)(cls),
|
|
6055
|
+
(0, plgg_view_1.attr)("aria-current", "page"),
|
|
6056
|
+
]
|
|
6057
|
+
: [(0, plgg_view_1.href)(props.home), (0, plgg_view_1.class_)(cls)];
|
|
6058
|
+
const narrowChrome = (props) => (0, plgg_1.matchOption)(() => [
|
|
6059
|
+
(0, plgg_view_1.el)("input", [
|
|
6060
|
+
(0, plgg_view_1.class_)(classHooks_1.shellMenuClass),
|
|
6061
|
+
(0, plgg_view_1.attr)("type", "checkbox"),
|
|
6062
|
+
(0, plgg_view_1.attr)("id", classHooks_1.shellMenuId),
|
|
6063
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
6064
|
+
], []),
|
|
6065
|
+
(0, plgg_view_1.el)("header", [(0, plgg_view_1.class_)(classHooks_1.shellBarClass)], [
|
|
6066
|
+
(0, plgg_view_1.el)("label", [
|
|
6067
|
+
(0, plgg_view_1.attr)("for", classHooks_1.shellMenuId),
|
|
6068
|
+
(0, plgg_view_1.class_)(classHooks_1.shellMenuButtonClass),
|
|
6069
|
+
(0, plgg_view_1.attr)("role", "button"),
|
|
6070
|
+
(0, plgg_view_1.attr)("aria-label", "メニュー"),
|
|
6071
|
+
], []),
|
|
6072
|
+
(0, plgg_view_1.a)(brandAttrs(props, classHooks_1.shellBarBrandClass), [(0, plgg_view_1.text)(props.brand)]),
|
|
6073
|
+
]),
|
|
6074
|
+
(0, plgg_view_1.el)("label", [
|
|
6075
|
+
(0, plgg_view_1.attr)("for", classHooks_1.shellMenuId),
|
|
6076
|
+
(0, plgg_view_1.class_)(classHooks_1.shellBackdropClass),
|
|
6077
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
6078
|
+
], []),
|
|
6079
|
+
], (d) => [
|
|
6080
|
+
(0, plgg_view_1.el)("header", [(0, plgg_view_1.class_)(classHooks_1.shellBarClass)], [
|
|
6081
|
+
(0, plgg_view_1.button)([
|
|
6082
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
6083
|
+
(0, plgg_view_1.class_)(classHooks_1.shellMenuButtonClass),
|
|
6084
|
+
(0, plgg_view_1.attr)("aria-label", "メニュー"),
|
|
6085
|
+
(0, plgg_view_1.attr)("aria-expanded", d.open ? "true" : "false"),
|
|
6086
|
+
...d.toggle,
|
|
6087
|
+
], []),
|
|
6088
|
+
(0, plgg_view_1.a)(brandAttrs(props, classHooks_1.shellBarBrandClass), [(0, plgg_view_1.text)(props.brand)]),
|
|
6089
|
+
]),
|
|
6090
|
+
(0, plgg_view_1.el)("div", [
|
|
6091
|
+
(0, plgg_view_1.class_)(classHooks_1.shellBackdropClass),
|
|
6092
|
+
(0, plgg_view_1.attr)("aria-hidden", "true"),
|
|
6093
|
+
...d.toggle,
|
|
6094
|
+
], []),
|
|
6095
|
+
])(props.drawer);
|
|
6096
|
+
const drawerOpen = (props) => (0, plgg_1.matchOption)(() => false, (d) => d.open)(props.drawer);
|
|
6097
|
+
const shell = (props) => (0, plgg_view_1.el)("div", [
|
|
6098
|
+
(0, plgg_view_1.class_)(classHooks_1.shellClass),
|
|
6099
|
+
...(props.folded
|
|
6100
|
+
? [(0, plgg_view_1.attr)(classHooks_1.shellMinAttr, "")]
|
|
6101
|
+
: []),
|
|
6102
|
+
...(drawerOpen(props)
|
|
6103
|
+
? [(0, plgg_view_1.attr)(classHooks_1.shellOpenAttr, "")]
|
|
6104
|
+
: []),
|
|
6105
|
+
], [
|
|
6106
|
+
...narrowChrome(props),
|
|
6107
|
+
(0, marker_1.strip)([classHooks_1.shareClass], [
|
|
6108
|
+
(0, plgg_view_1.el)("div", [
|
|
6109
|
+
(0, plgg_view_1.class_)(classHooks_1.colClass + " " + classHooks_1.shellSideClass),
|
|
6110
|
+
], [
|
|
6111
|
+
head([
|
|
6112
|
+
(0, plgg_view_1.a)(brandAttrs(props, classHooks_1.shellBrandClass), [(0, plgg_view_1.text)(props.brand)]),
|
|
6113
|
+
(0, plgg_view_1.button)([
|
|
6114
|
+
(0, plgg_view_1.attr)("type", "button"),
|
|
6115
|
+
(0, plgg_view_1.class_)(classHooks_1.shellFoldClass),
|
|
6116
|
+
(0, plgg_view_1.attr)("aria-label", "サイドバーをたたむ"),
|
|
6117
|
+
(0, plgg_view_1.attr)("aria-expanded", props.folded
|
|
6118
|
+
? "false"
|
|
6119
|
+
: "true"),
|
|
6120
|
+
...props.fold,
|
|
6121
|
+
], [(0, plgg_view_1.span)([], [])]),
|
|
6122
|
+
]),
|
|
6123
|
+
body([(0, sidebarNav_1.sidebarNav)(props.nav)]),
|
|
6124
|
+
(0, plgg_view_1.el)("div", [(0, plgg_view_1.class_)(classHooks_1.shellFootClass)], props.foot),
|
|
6125
|
+
]),
|
|
6126
|
+
...props.pages.map(page),
|
|
6127
|
+
]),
|
|
6128
|
+
]);
|
|
6129
|
+
exports.shell = shell;
|
|
6130
|
+
|
|
6131
|
+
},
|
|
6132
|
+
"src/Shell/usecase/kit.ts": function (module, exports, require) {
|
|
6133
|
+
"use strict";
|
|
6134
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6135
|
+
exports.kitAppearanceCss = exports.kitSystemCss = exports.kitCss = void 0;
|
|
6136
|
+
const metricCss_1 = require("src/Style/usecase/metricCss.ts");
|
|
6137
|
+
const schemeCss_1 = require("src/Style/usecase/schemeCss.ts");
|
|
6138
|
+
const themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
6139
|
+
const systemCss_1 = require("src/System/usecase/systemCss.ts");
|
|
6140
|
+
const appearance_1 = require("src/Appearance/model/appearance.ts");
|
|
6141
|
+
const appearanceCss_1 = require("src/Appearance/usecase/appearanceCss.ts");
|
|
6142
|
+
const kitCss = (theme, appearance = appearance_1.monochrome) => (0, exports.kitSystemCss)(theme) +
|
|
6143
|
+
(0, exports.kitAppearanceCss)(theme, appearance);
|
|
6144
|
+
exports.kitCss = kitCss;
|
|
6145
|
+
const kitSystemCss = (theme) => (0, metricCss_1.metricCss)(theme) + (0, systemCss_1.systemCss)(theme);
|
|
6146
|
+
exports.kitSystemCss = kitSystemCss;
|
|
6147
|
+
const kitAppearanceCss = (theme, appearance = appearance_1.monochrome) => (0, schemeCss_1.schemeCss)(theme) +
|
|
6148
|
+
themeToggle_1.themeToggleCss +
|
|
6149
|
+
(0, appearanceCss_1.appearanceCss)(theme)(appearance);
|
|
6150
|
+
exports.kitAppearanceCss = kitAppearanceCss;
|
|
6151
|
+
|
|
6152
|
+
},
|
|
6153
|
+
"src/System/usecase/systemCss.ts": function (module, exports, require) {
|
|
6154
|
+
"use strict";
|
|
6155
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6156
|
+
exports.systemCss = void 0;
|
|
6157
|
+
const metric_1 = require("src/Style/model/metric.ts");
|
|
6158
|
+
const zIndex_1 = require("src/Style/model/zIndex.ts");
|
|
6159
|
+
const breakpoint_1 = require("src/Style/model/breakpoint.ts");
|
|
6160
|
+
const shareCss_1 = require("src/Style/usecase/shareCss.ts");
|
|
6161
|
+
const systemCss = (theme) => {
|
|
6162
|
+
const p = theme.prefix;
|
|
6163
|
+
const mvar = (0, metric_1.metricVar)(theme);
|
|
6164
|
+
const inset = `--${p}-share-inset`;
|
|
6165
|
+
const min = `[data-${p}-shell-min]`;
|
|
6166
|
+
const M = `:is(${min} .${p}-shell,.${p}-shell${min})`;
|
|
6167
|
+
const side = `.${p}-shell-side`;
|
|
6168
|
+
const page = `.${p}-shell-page`;
|
|
6169
|
+
const group = `details.${p}-nav-group`;
|
|
6170
|
+
const car = `.${p}-carousel-prev,.${p}-carousel-next`;
|
|
6171
|
+
return (`
|
|
6172
|
+
.${p}-shell{position:relative;display:flex;flex-direction:column;height:100dvh;${inset}:${mvar("sidebar")}}
|
|
6173
|
+
.${p}-shell *{box-sizing:border-box}
|
|
6174
|
+
.${p}-shell .${p}-row{flex:1 1 auto;min-height:0;display:flex;align-items:stretch;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-padding-left:var(${inset})}
|
|
6175
|
+
.${p}-shell .${p}-col{flex:none;display:flex;flex-direction:column;min-height:0;overflow:hidden}
|
|
6176
|
+
.${p}-shell-head{flex:none;display:flex;align-items:center}
|
|
6177
|
+
.${p}-shell-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6178
|
+
.${p}-shell-body{flex:1 1 auto;min-height:0;overflow:auto}
|
|
6179
|
+
${side}{width:var(${inset});position:sticky;left:0;z-index:3}
|
|
6180
|
+
.${p}-shell-brand{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6181
|
+
.${p}-shell-fold{display:inline-flex;margin-left:auto;flex:none;align-items:center;justify-content:center;cursor:pointer}
|
|
6182
|
+
.${p}-shell-foot{flex:none;margin-top:auto;display:flex;align-items:center}
|
|
6183
|
+
@media ${(0, breakpoint_1.minWidth)("lg")}{
|
|
6184
|
+
${M}{${inset}:3rem}
|
|
6185
|
+
${M} ${side} .${p}-shell-brand,${M} ${side} .${p}-shell-body{display:none}
|
|
6186
|
+
${M} ${side} .${p}-shell-head{justify-content:center}
|
|
6187
|
+
${M} .${p}-shell-fold{margin:0}
|
|
6188
|
+
${M} .${p}-shell-foot{justify-content:center}
|
|
6189
|
+
}
|
|
6190
|
+
.${p}-shell-menu{display:none}
|
|
6191
|
+
.${p}-shell-bar{display:none;flex:none;align-items:center;z-index:${(0, zIndex_1.zValue)("chrome")}}
|
|
6192
|
+
.${p}-shell-menu-btn{display:inline-block;flex:none;width:22px;height:16px;cursor:pointer}
|
|
6193
|
+
.${p}-shell-bar-brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6194
|
+
.${p}-shell-backdrop{display:none;position:fixed;inset:0;z-index:${(0, zIndex_1.zValue)("backdrop")}}
|
|
6195
|
+
@media ${(0, breakpoint_1.maxWidth)("lg")}{
|
|
6196
|
+
.${p}-shell{${inset}:0px}
|
|
6197
|
+
.${p}-shell-bar{display:flex}
|
|
6198
|
+
.${p}-shell-fold{display:none}
|
|
6199
|
+
${side}{position:fixed;top:0;left:0;z-index:${(0, zIndex_1.zValue)("overlay")};height:100dvh;width:17rem;max-width:82vw;transform:translateX(-100%)}
|
|
6200
|
+
.${p}-shell-menu:checked ~ .${p}-row ${side},.${p}-shell[data-${p}-shell-open] ${side}{transform:translateX(0)}
|
|
6201
|
+
.${p}-shell-menu:checked ~ .${p}-shell-backdrop,.${p}-shell[data-${p}-shell-open] .${p}-shell-backdrop{display:block}
|
|
6202
|
+
.${p}-shell .${p}-row{scroll-snap-type:x mandatory}
|
|
6203
|
+
${page}{scroll-snap-align:start;scroll-snap-stop:always}
|
|
6204
|
+
}
|
|
6205
|
+
.${p}-shell .${p}-fold{flex:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6206
|
+
@keyframes ${p}-page-in{from{flex-grow:0;flex-basis:0;opacity:0}}
|
|
6207
|
+
@keyframes ${p}-page-out{to{flex-grow:0;flex-basis:0;opacity:0;border-right-width:0}}
|
|
6208
|
+
@keyframes ${p}-page-swap{from{opacity:0}}
|
|
6209
|
+
.${p}-shell ${page}${page}[data-${p}-leaving]{pointer-events:none}
|
|
6210
|
+
.${p}-doc{display:block;margin:0 auto;max-width:${mvar("measure")}}
|
|
6211
|
+
.${p}-span-2 .${p}-doc{max-width:none}
|
|
6212
|
+
.${p}-doc pre{overflow-x:auto}
|
|
6213
|
+
.${p}-doc table{display:block;overflow-x:auto}
|
|
6214
|
+
.${p}-doc img{max-width:100%}
|
|
6215
|
+
.${p}-nav{display:block}
|
|
6216
|
+
.${p}-nav-link,.${p}-nav-flat{display:block}
|
|
6217
|
+
.${p}-nav-numbered{counter-reset:sample}
|
|
6218
|
+
${group}{counter-reset:sample;interpolate-size:allow-keywords}
|
|
6219
|
+
${group} summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;user-select:none}
|
|
6220
|
+
${group} summary::-webkit-details-marker{display:none}
|
|
6221
|
+
${group}::details-content{block-size:0;overflow:clip}
|
|
6222
|
+
${group}[open]::details-content{block-size:auto}
|
|
6223
|
+
.${p}-nav-numbered .${p}-nav-link{counter-increment:sample}
|
|
6224
|
+
.${p}-nav-numbered .${p}-nav-link::before{content:counter(sample,decimal-leading-zero);font-variant-numeric:tabular-nums;margin-right:1rem}
|
|
6225
|
+
${car}{position:absolute;top:50%;z-index:${(0, zIndex_1.zValue)("chrome")};display:flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6226
|
+
.${p}-carousel-prev[hidden],.${p}-carousel-next[hidden]{display:none}
|
|
6227
|
+
.${p}-carousel-prev{left:calc(var(${inset},0px) + .6rem)}
|
|
6228
|
+
.${p}-carousel-next{right:.6rem}
|
|
6229
|
+
.${p}-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6230
|
+
.${p}-btn:disabled,.${p}-disabled{cursor:not-allowed}
|
|
6231
|
+
.${p}-actions{display:flex;flex-wrap:wrap}
|
|
6232
|
+
.${p}-form{display:flex;flex-direction:column}
|
|
6233
|
+
.${p}-field{display:flex;flex-direction:column}
|
|
6234
|
+
.${p}-check{flex-direction:row;align-items:center}
|
|
6235
|
+
.${p}-prop{display:grid;grid-template-columns:minmax(5.5rem,2fr) minmax(0,3fr);align-items:center}
|
|
6236
|
+
.${p}-prop-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6237
|
+
.${p}-prop-control{min-width:0;display:flex;align-items:center}
|
|
6238
|
+
.${p}-prop-control .${p}-input{flex:1 1 auto;width:100%;min-width:0}
|
|
6239
|
+
.${p}-switch{display:inline-flex;align-items:center;cursor:pointer}
|
|
6240
|
+
.${p}-switch:disabled{cursor:not-allowed}
|
|
6241
|
+
.${p}-switch-track{position:relative;display:block;flex:none;width:2.25rem;height:1.25rem}
|
|
6242
|
+
.${p}-switch-thumb{position:absolute;top:50%;left:.2rem;width:.75rem;height:.75rem;margin-top:-.375rem}
|
|
6243
|
+
.${p}-switch[aria-checked="true"] .${p}-switch-thumb{transform:translateX(1.05rem)}
|
|
6244
|
+
.${p}-modal{position:fixed;inset:0;z-index:${(0, zIndex_1.zValue)("backdrop")}}
|
|
6245
|
+
.${p}-backdrop{position:fixed;inset:0;z-index:${(0, zIndex_1.zValue)("backdrop")}}
|
|
6246
|
+
.${p}-dialog{position:fixed;z-index:${(0, zIndex_1.zValue)("overlay")};top:50%;left:50%;transform:translate(-50%,-50%);width:min(26rem,90vw)}
|
|
6247
|
+
.${p}-dialog-actions{display:flex;justify-content:flex-end}
|
|
6248
|
+
.${p}-toaster{position:fixed;right:1rem;bottom:1rem;z-index:${(0, zIndex_1.zValue)("overlay")};display:flex;flex-direction:column}
|
|
6249
|
+
.${p}-toast{display:flex;align-items:center}
|
|
6250
|
+
.${p}-toast-close{flex:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
|
|
6251
|
+
` + (0, shareCss_1.shareCss)(theme)(shareCss_1.shareOptions));
|
|
6252
|
+
};
|
|
6253
|
+
exports.systemCss = systemCss;
|
|
6254
|
+
|
|
6255
|
+
},
|
|
6256
|
+
"src/Appearance/model/appearance.ts": function (module, exports, require) {
|
|
6257
|
+
"use strict";
|
|
6258
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6259
|
+
exports.soft = exports.monochrome = void 0;
|
|
6260
|
+
exports.monochrome = {
|
|
6261
|
+
name: "monochrome",
|
|
6262
|
+
font: '"Inter","Noto Sans JP",system-ui,-apple-system,"Segoe UI","Hiragino Sans",sans-serif',
|
|
6263
|
+
mono: "ui-monospace,SFMono-Regular,Menlo,monospace",
|
|
6264
|
+
size: "15px",
|
|
6265
|
+
leading: "1.75",
|
|
6266
|
+
rule: "primary-border",
|
|
6267
|
+
hairline: "border",
|
|
6268
|
+
ruleWidth: "1px",
|
|
6269
|
+
radius: "0",
|
|
6270
|
+
current: {
|
|
6271
|
+
fill: "primary-base",
|
|
6272
|
+
ink: "surface",
|
|
6273
|
+
},
|
|
6274
|
+
hover: { fill: "surface-2", ink: "text" },
|
|
6275
|
+
press: { fill: "primary-base", ink: "surface" },
|
|
6276
|
+
head: "3rem",
|
|
6277
|
+
gutter: "1.25rem",
|
|
6278
|
+
page: "2rem 2.5rem 3rem",
|
|
6279
|
+
elevation: "none",
|
|
6280
|
+
quick: ".15s",
|
|
6281
|
+
arrive: ".34s",
|
|
6282
|
+
leave: ".26s",
|
|
6283
|
+
swap: ".18s",
|
|
6284
|
+
ease: "cubic-bezier(.2,.7,.2,1)",
|
|
6285
|
+
};
|
|
6286
|
+
exports.soft = {
|
|
6287
|
+
name: "soft",
|
|
6288
|
+
font: 'system-ui,-apple-system,"Segoe UI","Hiragino Sans",sans-serif',
|
|
6289
|
+
mono: "ui-monospace,SFMono-Regular,Menlo,monospace",
|
|
6290
|
+
size: "15px",
|
|
6291
|
+
leading: "1.7",
|
|
6292
|
+
rule: "border",
|
|
6293
|
+
hairline: "border",
|
|
6294
|
+
ruleWidth: "1px",
|
|
6295
|
+
radius: ".5rem",
|
|
6296
|
+
current: {
|
|
6297
|
+
fill: "primary-surface",
|
|
6298
|
+
ink: "primary-text",
|
|
6299
|
+
},
|
|
6300
|
+
hover: { fill: "surface-2", ink: "text" },
|
|
6301
|
+
press: { fill: "surface-2", ink: "text" },
|
|
6302
|
+
head: "3.25rem",
|
|
6303
|
+
gutter: "1rem",
|
|
6304
|
+
page: "1.75rem 2rem 3rem",
|
|
6305
|
+
elevation: "0 8px 28px rgba(0,0,0,.16)",
|
|
6306
|
+
quick: ".2s",
|
|
6307
|
+
arrive: ".42s",
|
|
6308
|
+
leave: ".3s",
|
|
6309
|
+
swap: ".24s",
|
|
6310
|
+
ease: "cubic-bezier(.22,1,.36,1)",
|
|
6311
|
+
};
|
|
6312
|
+
|
|
6313
|
+
},
|
|
6314
|
+
"src/Appearance/usecase/appearanceCss.ts": function (module, exports, require) {
|
|
6315
|
+
"use strict";
|
|
6316
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6317
|
+
exports.appearanceCss = void 0;
|
|
6318
|
+
const token_1 = require("src/Style/model/token.ts");
|
|
6319
|
+
const themeToggle_1 = require("src/Component/usecase/themeToggle.ts");
|
|
6320
|
+
const appearanceCss = (theme) => (a) => {
|
|
6321
|
+
const p = theme.prefix;
|
|
6322
|
+
const cvar = (0, token_1.colorVar)(theme);
|
|
6323
|
+
const text = cvar("text");
|
|
6324
|
+
const surface = cvar("surface");
|
|
6325
|
+
const muted = cvar("muted");
|
|
6326
|
+
const danger = cvar("danger-base");
|
|
6327
|
+
const rule = `${a.ruleWidth} solid ${cvar(a.rule)}`;
|
|
6328
|
+
const hair = `${a.ruleWidth} solid ${cvar(a.hairline)}`;
|
|
6329
|
+
const mark = (m) => `background:${cvar(m.fill)};color:${cvar(m.ink)}`;
|
|
6330
|
+
const quick = (...props) => `transition:${props.map((x) => `${x} ${a.quick} ease`).join(",")}`;
|
|
6331
|
+
const min = `[data-${p}-shell-min]`;
|
|
6332
|
+
const M = `:is(${min} .${p}-shell,.${p}-shell${min})`;
|
|
6333
|
+
const side = `.${p}-shell-side`;
|
|
6334
|
+
const page = `.${p}-shell-page`;
|
|
6335
|
+
const doc = `.${p}-doc`;
|
|
6336
|
+
const group = `details.${p}-nav-group`;
|
|
6337
|
+
const link = `.${p}-nav-link`;
|
|
6338
|
+
const car = `.${p}-carousel-prev,.${p}-carousel-next`;
|
|
6339
|
+
const carEach = (s) => `.${p}-carousel-prev${s},.${p}-carousel-next${s}`;
|
|
6340
|
+
const tones = [
|
|
6341
|
+
"success",
|
|
6342
|
+
"danger",
|
|
6343
|
+
"warning",
|
|
6344
|
+
"info",
|
|
6345
|
+
];
|
|
6346
|
+
return `
|
|
6347
|
+
.${p}-shell{background:${surface};color:${text};font-family:${a.font};font-size:${a.size};line-height:${a.leading};-webkit-font-smoothing:antialiased}
|
|
6348
|
+
.${p}-shell .${p}-col{background:${surface};border-right:${rule}}
|
|
6349
|
+
.${p}-shell-head{gap:.5rem;height:${a.head};padding:0 .5rem 0 ${a.gutter};border-bottom:${rule};font-size:.875rem;line-height:1.25rem;font-weight:600}
|
|
6350
|
+
.${p}-shell-body{scroll-behavior:smooth}
|
|
6351
|
+
${side}{transition:width ${a.arrive} ${a.ease}}
|
|
6352
|
+
${side} .${p}-shell-body{font-size:.875rem}
|
|
6353
|
+
${page} .${p}-shell-body{padding:${a.page}}
|
|
6354
|
+
.${p}-shell-brand{margin-left:-.5rem;padding:.25rem .5rem;border-radius:${a.radius};font-size:1rem;letter-spacing:-.01em;line-height:1.25rem;font-weight:600;color:${text};text-decoration:none;${quick("background-color", "color")}}
|
|
6355
|
+
.${p}-shell-brand:focus-visible{outline:${rule};outline-offset:-1px}
|
|
6356
|
+
.${p}-shell-brand[aria-current]{${mark(a.current)}}
|
|
6357
|
+
.${p}-shell-fold{width:1.9rem;height:1.9rem;padding:0;border:0;border-radius:${a.radius};background:none;color:${text};${quick("background-color", "color")}}
|
|
6358
|
+
.${p}-shell-fold:hover,.${p}-shell-fold:focus-visible{${mark(a.press)};outline:0}
|
|
6359
|
+
.${p}-shell-fold span{position:relative;display:block;width:1rem;height:.8rem;border:1.5px solid currentColor}
|
|
6360
|
+
.${p}-shell-fold span::before{content:"";position:absolute;top:0;bottom:0;left:.25rem;border-left:1.5px solid currentColor}
|
|
6361
|
+
.${p}-shell-foot{gap:.5rem;padding:.6rem ${a.gutter};border-top:${rule}}
|
|
6362
|
+
${M} ${side} .${p}-shell-head{padding:0}
|
|
6363
|
+
${M} .${p}-shell-foot{padding:.6rem 0}
|
|
6364
|
+
.${p}-shell-bar{gap:.6rem;height:${a.head};padding:0 1rem;background:${surface};border-bottom:${rule}}
|
|
6365
|
+
.${p}-shell-menu-btn{border:0;padding:0;color:${text};background-color:transparent;background-image:linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor),linear-gradient(currentColor,currentColor);background-size:100% 2px;background-position:0 1px,0 7px,0 13px;background-repeat:no-repeat}
|
|
6366
|
+
.${p}-shell-bar-brand{padding:.1rem .4rem;border-radius:${a.radius};font-size:1rem;font-weight:600;color:${text};text-decoration:none}
|
|
6367
|
+
.${p}-shell-bar-brand:focus-visible{outline:${rule};outline-offset:-1px}
|
|
6368
|
+
.${p}-shell-bar-brand[aria-current]{${mark(a.current)}}
|
|
6369
|
+
.${p}-shell-backdrop{background:rgba(0,0,0,.4)}
|
|
6370
|
+
@media (max-width:1023px){${side}{transition:transform ${a.leave} ease-out}}
|
|
6371
|
+
.${p}-shell .${p}-fold{width:1.75rem;height:1.75rem;border:0;border-radius:${a.radius};background:none;color:${muted};font:inherit;font-size:1.1rem;line-height:1;text-decoration:none}
|
|
6372
|
+
.${p}-shell .${p}-fold:hover,.${p}-shell .${p}-fold:focus-visible{${mark(a.press)};outline:0}
|
|
6373
|
+
${page} ~ ${page}{animation:${p}-page-in ${a.arrive} ${a.ease}}
|
|
6374
|
+
.${p}-shell ${page}${page}[data-${p}-replacing]{animation:${p}-page-swap ${a.swap} ease-out}
|
|
6375
|
+
.${p}-shell ${page}${page}[data-${p}-leaving]{animation:${p}-page-out ${a.leave} cubic-bezier(.4,0,.6,1) forwards}
|
|
6376
|
+
${doc} h1{font-size:1.375rem;font-weight:600;letter-spacing:-.01em;line-height:1.3;margin:0 0 1rem}
|
|
6377
|
+
${doc} h1 + p{color:${muted}}
|
|
6378
|
+
${doc} h2{font-size:1.0625rem;font-weight:600;line-height:1.4;margin:2.5rem 0 .75rem}
|
|
6379
|
+
${doc} h3{font-size:.9375rem;font-weight:600;line-height:1.5;margin:1.75rem 0 .5rem}
|
|
6380
|
+
${doc} h4{font-size:.875rem;font-weight:600;line-height:1.5;color:${muted};margin:1.25rem 0 .5rem}
|
|
6381
|
+
${doc} p{margin:.85rem 0}
|
|
6382
|
+
${doc} ul,${doc} ol{padding-left:1.35rem;margin:.85rem 0}
|
|
6383
|
+
${doc} li{margin:.35rem 0}
|
|
6384
|
+
${doc} strong{font-weight:600;color:${text}}
|
|
6385
|
+
${doc} blockquote{margin:1rem 0;padding:.1rem 1rem;border-left:${rule};color:${muted}}
|
|
6386
|
+
${doc} a{color:${text};text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;font-weight:400;padding:.15em .3em;margin-inline:-.3em;border-radius:${a.radius};${quick("background-color", "color")}}
|
|
6387
|
+
${doc} a:hover,${doc} a:focus-visible{${mark(a.press)};text-decoration:none;outline:0;box-decoration-break:clone;-webkit-box-decoration-break:clone}
|
|
6388
|
+
${doc} a[data-${p}-opened]{${mark(a.current)};text-decoration:none}
|
|
6389
|
+
${doc} mark{${mark(a.current)};padding:.1em .25em;border-radius:${a.radius};box-decoration-break:clone;-webkit-box-decoration-break:clone;scroll-margin-top:1rem}
|
|
6390
|
+
${doc} code{font-family:${a.mono};font-size:.86em;font-weight:400;color:${text};padding:.1em .35em;border:${a.ruleWidth} solid transparent;border-radius:${a.radius};background:${cvar("surface-2")}}
|
|
6391
|
+
${doc} a:hover code,${doc} a:focus-visible code,${doc} a[data-${p}-opened] code{color:inherit;background:none;border-color:transparent}
|
|
6392
|
+
${doc} pre{margin:1.1rem 0;padding:.875rem 1rem;background:${surface};border:${rule};border-radius:${a.radius};font-size:.8125rem;line-height:1.65}
|
|
6393
|
+
${doc} pre code{padding:0;border:none;background:none;font-size:inherit;color:inherit}
|
|
6394
|
+
${doc} table{border-collapse:collapse;margin:1.25rem 0;font-size:.92rem}
|
|
6395
|
+
${doc} th,${doc} td{text-align:left;padding:.5rem 1.25rem .5rem 0;border-bottom:${hair}}
|
|
6396
|
+
${doc} th{border-bottom:${rule};font-weight:600}
|
|
6397
|
+
${doc} hr{border:none;border-top:${hair};margin:1.5rem 0}
|
|
6398
|
+
${doc} :is(h1,h2,h3,h4){scroll-margin-top:1rem}
|
|
6399
|
+
.${p}-callout{margin:1.25rem 0;padding:.75rem 1rem;border:${a.ruleWidth} solid transparent;border-radius:${a.radius};font-size:.875rem;line-height:1.625}
|
|
6400
|
+
.${p}-callout-title{font-weight:600;margin:0 0 .35rem}
|
|
6401
|
+
.${p}-callout p{margin:.35rem 0}
|
|
6402
|
+
.${p}-callout-info,.${p}-callout-note{background:${surface};border-color:${cvar(a.rule)};color:${text}}
|
|
6403
|
+
.${p}-callout-tip{background:${cvar("success-surface")};border-color:${cvar("success-border")};color:${cvar("success-text")}}
|
|
6404
|
+
.${p}-callout-warning{background:${cvar("warning-surface")};border-color:${cvar("warning-border")};color:${cvar("warning-text")}}
|
|
6405
|
+
.${p}-callout-danger{background:${cvar("danger-surface")};border-color:${cvar("danger-border")};color:${cvar("danger-text")}}
|
|
6406
|
+
.${themeToggle_1.themeToggleClass}{border-radius:${a.radius === "0" ? "0" : "50%"};border:${hair}}
|
|
6407
|
+
.${themeToggle_1.themeToggleClass}:hover{border-color:${cvar(a.rule)}}
|
|
6408
|
+
.${themeToggle_1.themeToggleClass}:focus-visible{outline:${rule};outline-offset:2px}
|
|
6409
|
+
.${p}-nav-group{margin:0}
|
|
6410
|
+
.${p}-nav-group-title{padding:1.1rem ${a.gutter} .4rem;font-size:.75rem;line-height:1.25rem;font-weight:500;color:${muted};border-bottom:${hair}}
|
|
6411
|
+
${link}{padding:.5rem ${a.gutter};border-bottom:${hair};font-size:.875rem;line-height:1.45;color:${text};text-decoration:none}
|
|
6412
|
+
${link}:hover{${mark(a.hover)};text-decoration:none}
|
|
6413
|
+
${link}:focus-visible{${mark(a.press)};text-decoration:none;outline:0}
|
|
6414
|
+
.${p}-nav-label{padding:.15rem .5rem;margin-inline:-.5rem;border-radius:${a.radius};box-decoration-break:clone;-webkit-box-decoration-break:clone}
|
|
6415
|
+
${link}[aria-current] .${p}-nav-label{${mark(a.current)}}
|
|
6416
|
+
.${p}-nav-flat{padding:.5rem ${a.gutter};border-bottom:${hair};font-size:.875rem;line-height:1.45;color:${muted}}
|
|
6417
|
+
.${p}-nav-subgroup{margin:0}
|
|
6418
|
+
.${p}-nav-subgroup-title{padding:.5rem ${a.gutter};font-size:.875rem;line-height:1.45;border-bottom:${hair};font-weight:600;color:${text}}
|
|
6419
|
+
${group} summary{padding:.7rem ${a.gutter};font-size:.875rem;font-weight:600;color:${text};${quick("background-color", "color")}}
|
|
6420
|
+
${group} summary::after{content:"";width:.4rem;height:.4rem;margin-right:.2rem;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);transition:transform ${a.quick} ease}
|
|
6421
|
+
${group}[open] summary::after{transform:rotate(45deg)}
|
|
6422
|
+
${group}[open] summary{color:${text}}
|
|
6423
|
+
${group} summary:hover{${mark(a.hover)}}
|
|
6424
|
+
${group} summary:focus-visible{${mark(a.press)};outline:0}
|
|
6425
|
+
${group} summary:active{opacity:.8}
|
|
6426
|
+
${group}::details-content{transition:block-size ${a.leave} ease,content-visibility ${a.leave} allow-discrete}
|
|
6427
|
+
${group} ${link}{${quick("background-color", "color", "padding-left")}}
|
|
6428
|
+
${group}{border-bottom:${hair}}
|
|
6429
|
+
${group} ${link},${group} .${p}-nav-flat,${group} .${p}-nav-subgroup-title{padding-top:.4rem;padding-bottom:.4rem;padding-left:calc(${a.gutter} + .9rem);border-bottom:0;font-size:.8125rem}
|
|
6430
|
+
${group}[open] summary{padding-bottom:.45rem}
|
|
6431
|
+
${group}[open]::details-content{padding-bottom:.5rem}
|
|
6432
|
+
${group} ${link}:hover{padding-left:calc(${a.gutter} + 1.15rem)}
|
|
6433
|
+
${group} ${link}[aria-current]:hover{padding-left:calc(${a.gutter} + .9rem)}
|
|
6434
|
+
${car}{width:2.25rem;height:2.25rem;margin-top:-1.125rem;padding:0;border:${rule};border-radius:${a.radius};background:${surface};color:${text};box-shadow:${a.elevation};${quick("background-color", "color")}}
|
|
6435
|
+
${carEach("::before")}{content:"";width:.5rem;height:.5rem;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
|
|
6436
|
+
.${p}-carousel-prev::before{transform:translateX(.12rem) rotate(-135deg)}
|
|
6437
|
+
.${p}-carousel-next::before{transform:translateX(-.12rem) rotate(45deg)}
|
|
6438
|
+
${carEach(":hover")},${carEach(":focus-visible")}{${mark(a.press)};outline:0}
|
|
6439
|
+
.${p}-btn{gap:.4rem;min-height:2.1rem;padding:.35rem .9rem;border:${rule};border-radius:${a.radius};background:${surface};color:${text};font:inherit;font-size:.875rem;font-weight:500;line-height:1.25rem;${quick("background-color", "color", "opacity")}}
|
|
6440
|
+
.${p}-btn:hover:not(:disabled),.${p}-btn:focus-visible{${mark(a.press)};outline:0}
|
|
6441
|
+
.${p}-btn-primary{background:${cvar("primary-base")};color:${surface};border-color:${cvar("primary-base")}}
|
|
6442
|
+
.${p}-btn-primary:hover:not(:disabled),.${p}-btn-primary:focus-visible{opacity:.82;background:${cvar("primary-base")};color:${surface}}
|
|
6443
|
+
.${p}-btn-danger{border-color:${danger};color:${danger}}
|
|
6444
|
+
.${p}-btn-danger:hover:not(:disabled),.${p}-btn-danger:focus-visible{background:${danger};color:${surface};border-color:${danger}}
|
|
6445
|
+
.${p}-btn:disabled,.${p}-disabled{opacity:.45}
|
|
6446
|
+
.${p}-actions{gap:.5rem;margin-top:.9rem}
|
|
6447
|
+
.${p}-form{gap:.25rem;max-width:26rem}
|
|
6448
|
+
.${p}-fields{margin:.5rem 0}
|
|
6449
|
+
.${p}-field{margin:.55rem 0;gap:.3rem}
|
|
6450
|
+
.${p}-check{gap:.55rem}
|
|
6451
|
+
.${p}-field-label{font-size:.8125rem;font-weight:600;color:${text}}
|
|
6452
|
+
.${p}-input{padding:.45rem .6rem;border:${rule};border-radius:${a.radius};background:${surface};color:${text};font:inherit;font-size:.875rem;line-height:1.4;transition:box-shadow ${a.quick} ease}
|
|
6453
|
+
.${p}-input:focus,.${p}-input:focus-visible{outline:0;box-shadow:inset 0 0 0 1px ${cvar(a.rule)}}
|
|
6454
|
+
.${p}-input::placeholder{color:${muted}}
|
|
6455
|
+
.${p}-input[aria-invalid="true"]{border-color:${danger}}
|
|
6456
|
+
.${p}-checkbox{width:1rem;height:1rem;margin:0;accent-color:${cvar("primary-base")}}
|
|
6457
|
+
.${p}-field-error,.${p}-error{color:${danger};font-size:.8125rem}
|
|
6458
|
+
.${p}-hint{color:${muted};font-size:.8125rem}
|
|
6459
|
+
select.${p}-input{appearance:none;padding-right:1.9rem;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - .95rem) 50%,calc(100% - .65rem) 50%;background-size:.3rem .3rem;background-repeat:no-repeat;cursor:pointer}
|
|
6460
|
+
.${p}-input:disabled{opacity:.45}
|
|
6461
|
+
.${p}-props{border-top:${hair}}
|
|
6462
|
+
.${p}-prop{column-gap:.75rem;min-height:2.5rem;padding:.3rem ${a.gutter};border-bottom:${hair}}
|
|
6463
|
+
.${p}-prop-label{font-size:.8125rem;line-height:1.3;color:${text}}
|
|
6464
|
+
.${p}-prop-control .${p}-input{padding:.3rem .55rem;font-size:.8125rem}
|
|
6465
|
+
.${p}-prop-control select.${p}-input{padding-right:1.7rem}
|
|
6466
|
+
.${p}-switch{gap:.55rem;padding:0;border:0;background:none;color:${text};font:inherit;font-size:.8125rem;line-height:1.3}
|
|
6467
|
+
.${p}-switch-track{border:${rule};border-radius:${a.radius === "0" ? "0" : "999px"};background:${surface};${quick("background-color", "border-color")}}
|
|
6468
|
+
.${p}-switch-thumb{border-radius:${a.radius === "0" ? "0" : "50%"};background:${text};transition:transform ${a.quick} ${a.ease},background-color ${a.quick} ease}
|
|
6469
|
+
.${p}-switch[aria-checked="true"] .${p}-switch-track{background:${cvar("primary-base")};border-color:${cvar("primary-base")}}
|
|
6470
|
+
.${p}-switch[aria-checked="true"] .${p}-switch-thumb{background:${surface}}
|
|
6471
|
+
.${p}-switch:focus-visible{outline:0}
|
|
6472
|
+
.${p}-switch:focus-visible .${p}-switch-track{box-shadow:0 0 0 2px ${surface},0 0 0 3px ${cvar(a.rule)}}
|
|
6473
|
+
.${p}-switch:disabled{opacity:.45}
|
|
6474
|
+
.${p}-backdrop{background:rgba(0,0,0,.45)}
|
|
6475
|
+
.${p}-dialog{padding:1.25rem 1.4rem;background:${surface};color:${text};border:${rule};border-radius:${a.radius};box-shadow:${a.elevation}}
|
|
6476
|
+
.${p}-dialog-title{margin:0 0 .5rem;font-size:1rem;font-weight:600}
|
|
6477
|
+
.${p}-dialog-actions{gap:.5rem;margin-top:1.1rem}
|
|
6478
|
+
.${p}-toaster{gap:.5rem}
|
|
6479
|
+
.${p}-toast{gap:.9rem;padding:.55rem .6rem .55rem .9rem;border:${rule};border-radius:${a.radius};background:${surface};color:${text};font-size:.875rem;box-shadow:${a.elevation}}
|
|
6480
|
+
${tones
|
|
6481
|
+
.map((name) => `.${p}-toast-${name}{background:${cvar(`${name}-surface`)};color:${cvar(`${name}-text`)};border-color:${cvar(`${name}-border`)}}`)
|
|
6482
|
+
.join("\n")}
|
|
6483
|
+
.${p}-toast-close{width:1.6rem;height:1.6rem;padding:0;border:0;border-radius:${a.radius};background:none;color:inherit;font-size:1.05rem;line-height:1}
|
|
6484
|
+
.${p}-toast-close:hover,.${p}-toast-close:focus-visible{background:currentColor;outline:0}
|
|
6485
|
+
@media (max-width:959px){${page} .${p}-shell-body{padding:1.25rem 1.25rem 3rem}}
|
|
6486
|
+
@media (prefers-reduced-motion:reduce){${side},.${p}-shell-brand,.${p}-shell-fold,${doc} a,${group} summary,${group} summary::after,${group}::details-content,${group} ${link},${car},.${p}-btn,.${p}-input,.${p}-switch-track,.${p}-switch-thumb{transition:none}${page} ~ ${page},.${p}-shell ${page}${page}[data-${p}-replacing],.${p}-shell ${page}${page}[data-${p}-leaving]{animation:none}}
|
|
6487
|
+
`;
|
|
6488
|
+
};
|
|
6489
|
+
exports.appearanceCss = appearanceCss;
|
|
6490
|
+
|
|
6491
|
+
},
|
|
6492
|
+
"src/Appearance/usecase/asAppearance.ts": function (module, exports, require) {
|
|
6493
|
+
"use strict";
|
|
6494
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6495
|
+
exports.asAppearance = void 0;
|
|
6496
|
+
const plgg_1 = require("plgg");
|
|
6497
|
+
const token_1 = require("src/Style/model/token.ts");
|
|
6498
|
+
const asColor = (value) => {
|
|
6499
|
+
const found = token_1.colors.find((c) => c === value);
|
|
6500
|
+
return found === undefined
|
|
6501
|
+
? (0, plgg_1.err)((0, plgg_1.invalidError)({
|
|
6502
|
+
message: "not a colour role (text, surface, primary-base, …)",
|
|
6503
|
+
}))
|
|
6504
|
+
: (0, plgg_1.ok)(found);
|
|
6505
|
+
};
|
|
6506
|
+
const asMark = (value) => (0, plgg_1.cast)(value, plgg_1.asObj, (0, plgg_1.forProp)("fill", asColor), (0, plgg_1.forProp)("ink", asColor));
|
|
6507
|
+
const asAppearance = (value) => {
|
|
6508
|
+
const drawn = (0, plgg_1.cast)(value, plgg_1.asObj, (0, plgg_1.forProp)("name", plgg_1.asSoftStr), (0, plgg_1.forProp)("font", plgg_1.asSoftStr), (0, plgg_1.forProp)("mono", plgg_1.asSoftStr), (0, plgg_1.forProp)("size", plgg_1.asSoftStr), (0, plgg_1.forProp)("leading", plgg_1.asSoftStr), (0, plgg_1.forProp)("rule", asColor), (0, plgg_1.forProp)("hairline", asColor), (0, plgg_1.forProp)("ruleWidth", plgg_1.asSoftStr), (0, plgg_1.forProp)("radius", plgg_1.asSoftStr), (0, plgg_1.forProp)("current", asMark), (0, plgg_1.forProp)("hover", asMark), (0, plgg_1.forProp)("press", asMark));
|
|
6509
|
+
return (0, plgg_1.isErr)(drawn)
|
|
6510
|
+
? (0, plgg_1.err)(drawn.content)
|
|
6511
|
+
: (0, plgg_1.cast)(drawn.content, (0, plgg_1.forProp)("head", plgg_1.asSoftStr), (0, plgg_1.forProp)("gutter", plgg_1.asSoftStr), (0, plgg_1.forProp)("page", plgg_1.asSoftStr), (0, plgg_1.forProp)("elevation", plgg_1.asSoftStr), (0, plgg_1.forProp)("quick", plgg_1.asSoftStr), (0, plgg_1.forProp)("arrive", plgg_1.asSoftStr), (0, plgg_1.forProp)("leave", plgg_1.asSoftStr), (0, plgg_1.forProp)("swap", plgg_1.asSoftStr), (0, plgg_1.forProp)("ease", plgg_1.asSoftStr));
|
|
6512
|
+
};
|
|
6513
|
+
exports.asAppearance = asAppearance;
|
|
6514
|
+
|
|
5697
6515
|
}
|
|
5698
6516
|
};
|
|
5699
6517
|
const __cache = {};
|
|
@@ -5715,7 +6533,9 @@ export const {
|
|
|
5715
6533
|
actor,
|
|
5716
6534
|
adapter,
|
|
5717
6535
|
advanceColumns,
|
|
6536
|
+
appearanceCss,
|
|
5718
6537
|
applyVia,
|
|
6538
|
+
asAppearance,
|
|
5719
6539
|
asFlag,
|
|
5720
6540
|
asMoment,
|
|
5721
6541
|
asNum,
|
|
@@ -5734,12 +6554,20 @@ export const {
|
|
|
5734
6554
|
btnDangerClass,
|
|
5735
6555
|
btnPrimaryClass,
|
|
5736
6556
|
button,
|
|
6557
|
+
calloutClass,
|
|
6558
|
+
calloutTitleClass,
|
|
6559
|
+
calloutToneClass,
|
|
5737
6560
|
cancelAction,
|
|
6561
|
+
carouselCss,
|
|
6562
|
+
carouselInitScript,
|
|
6563
|
+
carouselNextClass,
|
|
6564
|
+
carouselPrevClass,
|
|
5738
6565
|
catalogOf,
|
|
5739
6566
|
checkClass,
|
|
5740
6567
|
checkLabelClass,
|
|
5741
6568
|
checkbox,
|
|
5742
6569
|
checkboxClass,
|
|
6570
|
+
choice,
|
|
5743
6571
|
choiceOf,
|
|
5744
6572
|
colClass,
|
|
5745
6573
|
colHead,
|
|
@@ -5785,6 +6613,7 @@ export const {
|
|
|
5785
6613
|
dialogTitleClass,
|
|
5786
6614
|
diffCatalog,
|
|
5787
6615
|
disabledClass,
|
|
6616
|
+
docClass,
|
|
5788
6617
|
documentColumn,
|
|
5789
6618
|
dynamic,
|
|
5790
6619
|
effect,
|
|
@@ -5792,6 +6621,7 @@ export const {
|
|
|
5792
6621
|
emit$,
|
|
5793
6622
|
emptyModel,
|
|
5794
6623
|
encodeTrail,
|
|
6624
|
+
entry,
|
|
5795
6625
|
entrySeparator,
|
|
5796
6626
|
enumArg,
|
|
5797
6627
|
enumArg$,
|
|
@@ -5839,7 +6669,11 @@ export const {
|
|
|
5839
6669
|
invokeWith,
|
|
5840
6670
|
isDestructive,
|
|
5841
6671
|
isPending,
|
|
6672
|
+
kitAppearanceCss,
|
|
6673
|
+
kitCss,
|
|
6674
|
+
kitSystemCss,
|
|
5842
6675
|
landmarkTag,
|
|
6676
|
+
leavingAttr,
|
|
5843
6677
|
listActionClass,
|
|
5844
6678
|
listActionsClass,
|
|
5845
6679
|
listClass,
|
|
@@ -5868,6 +6702,7 @@ export const {
|
|
|
5868
6702
|
modes,
|
|
5869
6703
|
momentValue,
|
|
5870
6704
|
momentValue$,
|
|
6705
|
+
monochrome,
|
|
5871
6706
|
moonClass,
|
|
5872
6707
|
multiColumn,
|
|
5873
6708
|
multiColumnWith,
|
|
@@ -5891,6 +6726,7 @@ export const {
|
|
|
5891
6726
|
numValue,
|
|
5892
6727
|
numValue$,
|
|
5893
6728
|
openMenu,
|
|
6729
|
+
openedAttr,
|
|
5894
6730
|
pane,
|
|
5895
6731
|
paneClass,
|
|
5896
6732
|
parseForm,
|
|
@@ -5909,6 +6745,12 @@ export const {
|
|
|
5909
6745
|
projectField,
|
|
5910
6746
|
projectRow,
|
|
5911
6747
|
projection,
|
|
6748
|
+
propClass,
|
|
6749
|
+
propControlClass,
|
|
6750
|
+
propLabelClass,
|
|
6751
|
+
propertyList,
|
|
6752
|
+
propertyRow,
|
|
6753
|
+
propsClass,
|
|
5912
6754
|
prose,
|
|
5913
6755
|
query,
|
|
5914
6756
|
queryChoice,
|
|
@@ -5928,6 +6770,7 @@ export const {
|
|
|
5928
6770
|
rejected,
|
|
5929
6771
|
rejected$,
|
|
5930
6772
|
renderMode,
|
|
6773
|
+
replacingAttr,
|
|
5931
6774
|
requestAction,
|
|
5932
6775
|
resolveAdapter,
|
|
5933
6776
|
resolveTrail,
|
|
@@ -5955,6 +6798,28 @@ export const {
|
|
|
5955
6798
|
selectInput,
|
|
5956
6799
|
selector,
|
|
5957
6800
|
settledTrail,
|
|
6801
|
+
shareClass,
|
|
6802
|
+
shareCss,
|
|
6803
|
+
shareInsetVar,
|
|
6804
|
+
shareOptions,
|
|
6805
|
+
shell,
|
|
6806
|
+
shellBackdropClass,
|
|
6807
|
+
shellBarBrandClass,
|
|
6808
|
+
shellBarClass,
|
|
6809
|
+
shellBodyClass,
|
|
6810
|
+
shellBrandClass,
|
|
6811
|
+
shellClass,
|
|
6812
|
+
shellFoldClass,
|
|
6813
|
+
shellFootClass,
|
|
6814
|
+
shellHeadClass,
|
|
6815
|
+
shellMenuButtonClass,
|
|
6816
|
+
shellMenuClass,
|
|
6817
|
+
shellMenuId,
|
|
6818
|
+
shellMinAttr,
|
|
6819
|
+
shellOpenAttr,
|
|
6820
|
+
shellPageClass,
|
|
6821
|
+
shellSideClass,
|
|
6822
|
+
shellTitleClass,
|
|
5958
6823
|
sidebarNav,
|
|
5959
6824
|
sidebarNavClass,
|
|
5960
6825
|
sidebarNavCss,
|
|
@@ -5963,9 +6828,11 @@ export const {
|
|
|
5963
6828
|
singleColumn,
|
|
5964
6829
|
sliceOf,
|
|
5965
6830
|
slotOf,
|
|
6831
|
+
soft,
|
|
5966
6832
|
soloComposition,
|
|
5967
6833
|
spanAttr,
|
|
5968
6834
|
spanParam,
|
|
6835
|
+
spanTwoClass,
|
|
5969
6836
|
stalled,
|
|
5970
6837
|
stalled$,
|
|
5971
6838
|
startFlow,
|
|
@@ -5979,8 +6846,13 @@ export const {
|
|
|
5979
6846
|
stripStyle,
|
|
5980
6847
|
stripVar,
|
|
5981
6848
|
sunClass,
|
|
6849
|
+
switchClass,
|
|
6850
|
+
switchLabelClass,
|
|
6851
|
+
switchThumbClass,
|
|
6852
|
+
switchTrackClass,
|
|
5982
6853
|
sync,
|
|
5983
6854
|
syncCatalog,
|
|
6855
|
+
systemCss,
|
|
5984
6856
|
textArea,
|
|
5985
6857
|
textArg,
|
|
5986
6858
|
textArg$,
|
|
@@ -6002,6 +6874,7 @@ export const {
|
|
|
6002
6874
|
toastToneClass,
|
|
6003
6875
|
toaster,
|
|
6004
6876
|
toasterClass,
|
|
6877
|
+
toggle,
|
|
6005
6878
|
toggleMode,
|
|
6006
6879
|
tones,
|
|
6007
6880
|
tool,
|