@s_and_a/arrow-ui 0.1.20 → 0.2.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/dist/{contracts-C0Amsdi9.js → contracts-a_yLRqbF.js} +1 -1
- package/dist/{design-DrseyOgF.js → design-DFw1iGyJ.js} +2 -1
- package/dist/design.js +2 -2
- package/dist/index.js +5038 -5004
- package/dist/{requirements-B86TU96J.js → requirements-CKgrF5eA.js} +1 -1
- package/dist/requirements.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/ArAlert.vue.d.ts +1 -1
- package/dist/types/components/ArAvatar.vue.d.ts +1 -1
- package/dist/types/components/ArBadge.vue.d.ts +1 -1
- package/dist/types/components/ArBalloon.vue.d.ts +1 -1
- package/dist/types/components/ArButton.vue.d.ts +1 -1
- package/dist/types/components/ArChoiceCard.vue.d.ts +1 -1
- package/dist/types/components/ArDropdown.vue.d.ts +1 -1
- package/dist/types/components/ArFloatButton.vue.d.ts +1 -1
- package/dist/types/components/ArMessage.vue.d.ts +1 -1
- package/dist/types/components/ArNotification.vue.d.ts +1 -1
- package/dist/types/components/ArPointerBadge.vue.d.ts +1 -1
- package/dist/types/components/ArShiftGrid.vue.d.ts +1 -1
- package/dist/types/components/ArStatistic.vue.d.ts +1 -1
- package/dist/types/components/ArSwitch.vue.d.ts +1 -1
- package/dist/types/components/ArTag.vue.d.ts +1 -1
- package/dist/types/components/ArTooltip.vue.d.ts +1 -1
- package/dist/types/contracts.d.ts +1 -1
- package/dist/types/design-entry.d.ts +1 -1
- package/dist/types/design.d.ts +12 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/provider/ArUiProvider.vue.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e } from "./contracts-
|
|
1
|
+
import { i as e } from "./contracts-a_yLRqbF.js";
|
|
2
2
|
import { paletteNames as t, paletteSlots as n, tokenNames as r } from "@s_and_a/arrow-ui-tokens";
|
|
3
3
|
// src/design.ts
|
|
4
4
|
var i = class extends Error {
|
|
@@ -15,6 +15,7 @@ function a(a) {
|
|
|
15
15
|
}
|
|
16
16
|
let c = e.filter((e) => !a.covers?.[e]);
|
|
17
17
|
for (let [e, t] of Object.entries(a.icons ?? {})) typeof t != "string" || !/^<svg\b[^>]*\bviewBox="[^"]+"[^>]*>[\s\S]*<\/svg>$/.test(t.trim()) ? o.push(`アイコン「${e}」の絵が <svg viewBox="…">…</svg> の形ではありません`) : /<(style|script|foreignObject)\b|\son\w+=/i.test(t) && o.push(`アイコン「${e}」の絵に <style>・<script>・on… は書けません`);
|
|
18
|
+
for (let [e, t] of Object.entries(a.tones ?? {})) /^[a-z][a-z0-9-]*$/.test(e) && e !== "standard" || o.push(`色合い「${e}」の名前が使えません(英小文字、standard 以外)`), t?.label || o.push(`色合い「${e}」の label がありません`);
|
|
18
19
|
if (c.length && o.push(`見た目を用意していない部品があります: ${c.join(", ")}`), o.length) throw new i(`design「${a.id}」を登録できません。\n- ${o.join("\n- ")}`);
|
|
19
20
|
return Object.freeze({ ...a });
|
|
20
21
|
}
|
package/dist/design.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, t } from "./design-
|
|
2
|
-
import { a as n, i as r, n as i, r as a } from "./contracts-
|
|
1
|
+
import { n as e, t } from "./design-DFw1iGyJ.js";
|
|
2
|
+
import { a as n, i as r, n as i, r as a } from "./contracts-a_yLRqbF.js";
|
|
3
3
|
export { t as ArDesignError, i as componentNames, a as contracts, e as defineDesign, r as designedComponents, n as structuralComponents };
|