@histoire/controls 0.7.4 → 0.7.7
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/.histoire/dist/__sandbox.html +2 -2
- package/.histoire/dist/assets/{BaseEmpty.d30f3079.js → BaseEmpty.c5ebb434.js} +2 -2
- package/.histoire/dist/assets/{HomeView.8e044be6.js → HomeView.2d2d0dfe.js} +2 -2
- package/.histoire/dist/assets/HstCheckbox.story.ccd10161.js +151 -0
- package/.histoire/dist/assets/{HstColorShades.story.68cf74d1.js → HstColorShades.story.d71deb80.js} +198 -190
- package/.histoire/dist/assets/{HstCopyIcon.e40e725e.js → HstCopyIcon.ef403c78.js} +22 -18
- package/.histoire/dist/assets/HstNumber.story.1e0e7b71.js +165 -0
- package/.histoire/dist/assets/HstSelect.story.8a2b4741.js +290 -0
- package/.histoire/dist/assets/HstSlider.story.4155f6ba.js +153 -0
- package/.histoire/dist/assets/HstText.story.43417ceb.js +143 -0
- package/.histoire/dist/assets/HstTextarea.story.3e39b89e.js +111 -0
- package/.histoire/dist/assets/HstTokenGrid.story.e2f237c4.js +156 -0
- package/.histoire/dist/assets/HstTokenList.story.bc7b0288.js +184 -0
- package/.histoire/dist/assets/{HstWrapper.246b6982.js → HstWrapper.fee42109.js} +31 -26
- package/.histoire/dist/assets/{SearchPane.daa2675c.js → SearchPane.37a81ba7.js} +6 -6
- package/.histoire/dist/assets/{StoryView.2f64dad1.js → StoryView.2c1f1961.js} +18 -16
- package/.histoire/dist/assets/{bundle-main.784e5bf7.js → bundle-main.c70a2b14.js} +6 -6
- package/.histoire/dist/assets/{bundle-sandbox.5e153933.js → bundle-sandbox.f56c0808.js} +3 -3
- package/.histoire/dist/assets/{const.268165fd.js → const.36730b48.js} +61 -2
- package/.histoire/dist/assets/{global-components.6736b2a9.js → global-components.d165b38c.js} +132 -48
- package/.histoire/dist/assets/{search-docs-data.b9a75539.js → search-docs-data.2e7ad186.js} +1 -1
- package/.histoire/dist/assets/{style.04507241.css → style.dc851298.css} +102 -32
- package/.histoire/dist/assets/{vendor.2833ae3d.js → vendor.31c91490.js} +508 -505
- package/.histoire/dist/index.html +3 -3
- package/histoire-dist/__sandbox.html +15 -0
- package/histoire-dist/assets/BaseEmpty.a84c14c8.js +1 -0
- package/histoire-dist/assets/HomeView.f524bd4b.js +1 -0
- package/histoire-dist/assets/HstCheckbox.story.9f622545.js +1 -0
- package/histoire-dist/assets/HstInput.story.945401ce.js +1 -0
- package/histoire-dist/assets/SearchModal.76c035f2.js +1 -0
- package/histoire-dist/assets/StoryView.e4c41518.js +15 -0
- package/histoire-dist/assets/global-components.84d0ab22.js +1 -0
- package/histoire-dist/assets/histoire-text-dark.a529813a.svg +89 -0
- package/histoire-dist/assets/histoire-text.1d4474b5.svg +89 -0
- package/histoire-dist/assets/histoire.8af7bd1f.svg +51 -0
- package/histoire-dist/assets/index.58f51dd0.js +1 -0
- package/histoire-dist/assets/preview-settings.a634d101.js +1 -0
- package/histoire-dist/assets/sandbox.2c60450a.js +1 -0
- package/histoire-dist/assets/style.7657d2ac.css +1 -0
- package/histoire-dist/assets/vendor.70a554f6.js +9 -0
- package/histoire-dist/index.html +15 -0
- package/package.json +2 -2
- package/.histoire/dist/assets/HstCheckbox.story.3d04d85b.js +0 -144
- package/.histoire/dist/assets/HstNumber.story.1e1964ff.js +0 -160
- package/.histoire/dist/assets/HstSelect.story.04860383.js +0 -277
- package/.histoire/dist/assets/HstText.story.c915d831.js +0 -137
- package/.histoire/dist/assets/HstTextarea.story.802b9c26.js +0 -105
- package/.histoire/dist/assets/HstTokenGrid.story.025819d6.js +0 -148
- package/.histoire/dist/assets/HstTokenList.story.d3aa6575.js +0 -176
|
@@ -10991,7 +10991,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
10991
10991
|
});
|
|
10992
10992
|
const _hoisted_1$3 = ["innerHTML"];
|
|
10993
10993
|
const _hoisted_2$2 = ["textContent"];
|
|
10994
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10994
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10995
10995
|
const _component_PopperContent = resolveComponent("PopperContent");
|
|
10996
10996
|
const _component_Popper = resolveComponent("Popper");
|
|
10997
10997
|
return openBlock(), createBlock(_component_Popper, mergeProps({ ref: "popper" }, _ctx.$attrs, {
|
|
@@ -11044,7 +11044,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11044
11044
|
_: 1
|
|
11045
11045
|
}, 16, ["theme", "popper-node", "onApplyShow", "onApplyHide"]);
|
|
11046
11046
|
}
|
|
11047
|
-
var PrivateTooltipDirective = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["render", _sfc_render]]);
|
|
11047
|
+
var PrivateTooltipDirective = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["render", _sfc_render$4]]);
|
|
11048
11048
|
const TARGET_CLASS = "v-popper--has-tooltip";
|
|
11049
11049
|
function getPlacement(options2, modifiers) {
|
|
11050
11050
|
let result = options2.placement;
|
|
@@ -16294,16 +16294,6 @@ var _export_sfc = (sfc, props) => {
|
|
|
16294
16294
|
return target;
|
|
16295
16295
|
};
|
|
16296
16296
|
var Tailwind_story_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
16297
|
-
const _withScopeId = (n2) => (pushScopeId("data-v-9e4c73b2"), n2 = n2(), popScopeId(), n2);
|
|
16298
|
-
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", { class: "padding-box" }, null, -1));
|
|
16299
|
-
const _hoisted_2 = [
|
|
16300
|
-
_hoisted_1
|
|
16301
|
-
];
|
|
16302
|
-
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", { class: "margin-box" }, null, -1));
|
|
16303
|
-
const _hoisted_4 = [
|
|
16304
|
-
_hoisted_3
|
|
16305
|
-
];
|
|
16306
|
-
const _hoisted_5 = { class: "width" };
|
|
16307
16297
|
const _sfc_main = {
|
|
16308
16298
|
name: "Tailwind.story",
|
|
16309
16299
|
setup(__props, { expose }) {
|
|
@@ -22843,7 +22833,6 @@ const _sfc_main = {
|
|
|
22843
22833
|
"content"
|
|
22844
22834
|
],
|
|
22845
22835
|
"plugins": [],
|
|
22846
|
-
"prefix": "htw-",
|
|
22847
22836
|
"content": {
|
|
22848
22837
|
"files": [
|
|
22849
22838
|
"./src/**/*.{vue,js,ts,jsx,tsx,md}"
|
|
@@ -22852,8 +22841,8 @@ const _sfc_main = {
|
|
|
22852
22841
|
"transform": {}
|
|
22853
22842
|
},
|
|
22854
22843
|
"darkMode": "class",
|
|
22844
|
+
"prefix": "htw-",
|
|
22855
22845
|
"default": {
|
|
22856
|
-
"prefix": "htw-",
|
|
22857
22846
|
"theme": {
|
|
22858
22847
|
"extend": {
|
|
22859
22848
|
"colors": {
|
|
@@ -22928,7 +22917,8 @@ const _sfc_main = {
|
|
|
22928
22917
|
"corePlugins": {
|
|
22929
22918
|
"preflight": false
|
|
22930
22919
|
},
|
|
22931
|
-
"plugins": []
|
|
22920
|
+
"plugins": [],
|
|
22921
|
+
"prefix": "htw-"
|
|
22932
22922
|
},
|
|
22933
22923
|
"presets": [],
|
|
22934
22924
|
"variantOrder": [
|
|
@@ -22961,536 +22951,549 @@ const _sfc_main = {
|
|
|
22961
22951
|
sampleText,
|
|
22962
22952
|
fontSize
|
|
22963
22953
|
});
|
|
22964
|
-
|
|
22965
|
-
|
|
22966
|
-
|
|
22967
|
-
|
|
22968
|
-
|
|
22969
|
-
|
|
22970
|
-
|
|
22971
|
-
|
|
22972
|
-
|
|
22973
|
-
|
|
22974
|
-
|
|
22975
|
-
|
|
22976
|
-
|
|
22977
|
-
|
|
22978
|
-
|
|
22979
|
-
|
|
22954
|
+
const __returned__ = { config: config2, search, sampleText, fontSize, ref };
|
|
22955
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
22956
|
+
return __returned__;
|
|
22957
|
+
}
|
|
22958
|
+
};
|
|
22959
|
+
const _withScopeId = (n2) => (pushScopeId("data-v-9e4c73b2"), n2 = n2(), popScopeId(), n2);
|
|
22960
|
+
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", { class: "padding-box" }, null, -1));
|
|
22961
|
+
const _hoisted_2 = [
|
|
22962
|
+
_hoisted_1
|
|
22963
|
+
];
|
|
22964
|
+
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", { class: "margin-box" }, null, -1));
|
|
22965
|
+
const _hoisted_4 = [
|
|
22966
|
+
_hoisted_3
|
|
22967
|
+
];
|
|
22968
|
+
const _hoisted_5 = { class: "width" };
|
|
22969
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22970
|
+
const _component_HstColorShades = resolveComponent("HstColorShades");
|
|
22971
|
+
const _component_HstText = resolveComponent("HstText");
|
|
22972
|
+
const _component_Variant = resolveComponent("Variant");
|
|
22973
|
+
const _component_HstTokenList = resolveComponent("HstTokenList");
|
|
22974
|
+
const _component_HstTextarea = resolveComponent("HstTextarea");
|
|
22975
|
+
const _component_HstNumber = resolveComponent("HstNumber");
|
|
22976
|
+
const _component_HstTokenGrid = resolveComponent("HstTokenGrid");
|
|
22977
|
+
const _component_Story = resolveComponent("Story");
|
|
22978
|
+
return openBlock(), createBlock(_component_Story, {
|
|
22979
|
+
id: "tailwind",
|
|
22980
|
+
title: "Tailwind",
|
|
22981
|
+
group: "design-system",
|
|
22982
|
+
icon: "mdi:tailwind",
|
|
22983
|
+
responsiveDisabled: "",
|
|
22984
|
+
layout: { type: "single", iframe: false }
|
|
22985
|
+
}, {
|
|
22986
|
+
default: withCtx(() => [
|
|
22987
|
+
createVNode(_component_Variant, {
|
|
22988
|
+
id: "background-color",
|
|
22989
|
+
title: "Background Color",
|
|
22990
|
+
icon: "carbon:color-palette"
|
|
22980
22991
|
}, {
|
|
22992
|
+
controls: withCtx(() => [
|
|
22993
|
+
createVNode(_component_HstText, {
|
|
22994
|
+
modelValue: $setup.search,
|
|
22995
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.search = $event),
|
|
22996
|
+
title: "Filter..."
|
|
22997
|
+
}, null, 8, ["modelValue"])
|
|
22998
|
+
]),
|
|
22981
22999
|
default: withCtx(() => [
|
|
22982
|
-
|
|
22983
|
-
|
|
22984
|
-
|
|
22985
|
-
|
|
22986
|
-
|
|
22987
|
-
|
|
22988
|
-
|
|
22989
|
-
|
|
22990
|
-
|
|
22991
|
-
|
|
22992
|
-
}
|
|
22993
|
-
|
|
22994
|
-
|
|
22995
|
-
|
|
22996
|
-
|
|
22997
|
-
|
|
22998
|
-
|
|
22999
|
-
|
|
23000
|
-
|
|
23001
|
-
|
|
23002
|
-
|
|
23003
|
-
|
|
23004
|
-
|
|
23005
|
-
|
|
23006
|
-
|
|
23007
|
-
|
|
23008
|
-
|
|
23009
|
-
|
|
23010
|
-
|
|
23011
|
-
|
|
23012
|
-
|
|
23013
|
-
|
|
23014
|
-
|
|
23015
|
-
|
|
23016
|
-
|
|
23017
|
-
|
|
23018
|
-
|
|
23019
|
-
|
|
23020
|
-
|
|
23021
|
-
|
|
23022
|
-
|
|
23023
|
-
|
|
23024
|
-
|
|
23025
|
-
|
|
23026
|
-
|
|
23027
|
-
|
|
23028
|
-
|
|
23029
|
-
}
|
|
23030
|
-
|
|
23031
|
-
|
|
23032
|
-
|
|
23033
|
-
|
|
23034
|
-
|
|
23035
|
-
|
|
23036
|
-
|
|
23037
|
-
|
|
23038
|
-
|
|
23039
|
-
|
|
23040
|
-
|
|
23041
|
-
|
|
23042
|
-
|
|
23043
|
-
|
|
23044
|
-
|
|
23045
|
-
|
|
23046
|
-
|
|
23047
|
-
|
|
23048
|
-
|
|
23049
|
-
|
|
23050
|
-
|
|
23051
|
-
|
|
23052
|
-
|
|
23053
|
-
|
|
23054
|
-
|
|
23055
|
-
|
|
23056
|
-
|
|
23057
|
-
|
|
23058
|
-
|
|
23059
|
-
|
|
23060
|
-
|
|
23061
|
-
|
|
23062
|
-
|
|
23063
|
-
|
|
23064
|
-
|
|
23065
|
-
|
|
23066
|
-
}
|
|
23067
|
-
|
|
23068
|
-
|
|
23069
|
-
|
|
23070
|
-
|
|
23071
|
-
|
|
23072
|
-
|
|
23073
|
-
|
|
23074
|
-
|
|
23075
|
-
|
|
23076
|
-
|
|
23077
|
-
|
|
23078
|
-
|
|
23079
|
-
|
|
23080
|
-
|
|
23081
|
-
|
|
23082
|
-
|
|
23083
|
-
|
|
23084
|
-
|
|
23085
|
-
|
|
23086
|
-
|
|
23087
|
-
|
|
23088
|
-
|
|
23089
|
-
|
|
23090
|
-
|
|
23091
|
-
|
|
23092
|
-
}),
|
|
23093
|
-
createVNode(_component_Variant, {
|
|
23094
|
-
id: "padding",
|
|
23095
|
-
title: "Padding",
|
|
23096
|
-
icon: "carbon:area"
|
|
23097
|
-
}, {
|
|
23098
|
-
default: withCtx(() => [
|
|
23099
|
-
createVNode(_component_HstTokenList, {
|
|
23100
|
-
tokens: config2.theme.padding,
|
|
23101
|
-
"get-name": (key) => {
|
|
23102
|
-
var _a2;
|
|
23103
|
-
return `${(_a2 = config2.prefix) != null ? _a2 : ""}p-${key}`;
|
|
23104
|
-
}
|
|
23105
|
-
}, {
|
|
23106
|
-
default: withCtx(({ token }) => [
|
|
23107
|
-
createBaseVNode("div", {
|
|
23108
|
-
class: "padding",
|
|
23109
|
-
style: normalizeStyle({
|
|
23110
|
-
padding: token.value
|
|
23111
|
-
})
|
|
23112
|
-
}, _hoisted_2, 4)
|
|
23113
|
-
]),
|
|
23114
|
-
_: 1
|
|
23115
|
-
}, 8, ["tokens", "get-name"])
|
|
23116
|
-
]),
|
|
23117
|
-
_: 1
|
|
23118
|
-
}),
|
|
23119
|
-
createVNode(_component_Variant, {
|
|
23120
|
-
id: "margin",
|
|
23121
|
-
title: "Margin",
|
|
23122
|
-
icon: "carbon:area"
|
|
23000
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($setup.config.theme.backgroundColor, (shades, key) => {
|
|
23001
|
+
return openBlock(), createBlock(_component_HstColorShades, {
|
|
23002
|
+
key,
|
|
23003
|
+
shades: typeof shades === "object" ? shades : { DEFAULT: shades },
|
|
23004
|
+
"get-name": (shade) => {
|
|
23005
|
+
var _a2;
|
|
23006
|
+
return ((_a2 = $setup.config.prefix) != null ? _a2 : "") + (shade === "DEFAULT" ? `bg-${key}` : `bg-${key}-${shade}`);
|
|
23007
|
+
},
|
|
23008
|
+
search: $setup.search
|
|
23009
|
+
}, {
|
|
23010
|
+
default: withCtx(({ color }) => [
|
|
23011
|
+
createBaseVNode("div", {
|
|
23012
|
+
class: "shade",
|
|
23013
|
+
style: normalizeStyle({
|
|
23014
|
+
backgroundColor: color
|
|
23015
|
+
})
|
|
23016
|
+
}, null, 4)
|
|
23017
|
+
]),
|
|
23018
|
+
_: 2
|
|
23019
|
+
}, 1032, ["shades", "get-name", "search"]);
|
|
23020
|
+
}), 128))
|
|
23021
|
+
]),
|
|
23022
|
+
_: 1
|
|
23023
|
+
}),
|
|
23024
|
+
createVNode(_component_Variant, {
|
|
23025
|
+
id: "text-color",
|
|
23026
|
+
title: "Text Color",
|
|
23027
|
+
icon: "carbon:text-color"
|
|
23028
|
+
}, {
|
|
23029
|
+
controls: withCtx(() => [
|
|
23030
|
+
createVNode(_component_HstText, {
|
|
23031
|
+
modelValue: $setup.search,
|
|
23032
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.search = $event),
|
|
23033
|
+
title: "Filter..."
|
|
23034
|
+
}, null, 8, ["modelValue"])
|
|
23035
|
+
]),
|
|
23036
|
+
default: withCtx(() => [
|
|
23037
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($setup.config.theme.textColor, (shades, key) => {
|
|
23038
|
+
return openBlock(), createBlock(_component_HstColorShades, {
|
|
23039
|
+
key,
|
|
23040
|
+
shades: typeof shades === "object" ? shades : { DEFAULT: shades },
|
|
23041
|
+
"get-name": (shade) => {
|
|
23042
|
+
var _a2;
|
|
23043
|
+
return ((_a2 = $setup.config.prefix) != null ? _a2 : "") + (shade === "DEFAULT" ? `text-${key}` : `text-${key}-${shade}`);
|
|
23044
|
+
},
|
|
23045
|
+
search: $setup.search
|
|
23046
|
+
}, {
|
|
23047
|
+
default: withCtx(({ color }) => [
|
|
23048
|
+
createBaseVNode("div", {
|
|
23049
|
+
class: "shade text",
|
|
23050
|
+
style: normalizeStyle({
|
|
23051
|
+
color
|
|
23052
|
+
})
|
|
23053
|
+
}, " Aa ", 4)
|
|
23054
|
+
]),
|
|
23055
|
+
_: 2
|
|
23056
|
+
}, 1032, ["shades", "get-name", "search"]);
|
|
23057
|
+
}), 128))
|
|
23058
|
+
]),
|
|
23059
|
+
_: 1
|
|
23060
|
+
}),
|
|
23061
|
+
createVNode(_component_Variant, {
|
|
23062
|
+
id: "border-color",
|
|
23063
|
+
title: "Border Color",
|
|
23064
|
+
icon: "carbon:color-palette"
|
|
23065
|
+
}, {
|
|
23066
|
+
controls: withCtx(() => [
|
|
23067
|
+
createVNode(_component_HstText, {
|
|
23068
|
+
modelValue: $setup.search,
|
|
23069
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.search = $event),
|
|
23070
|
+
title: "Filter..."
|
|
23071
|
+
}, null, 8, ["modelValue"])
|
|
23072
|
+
]),
|
|
23073
|
+
default: withCtx(() => [
|
|
23074
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($setup.config.theme.borderColor, (shades, key) => {
|
|
23075
|
+
return openBlock(), createBlock(_component_HstColorShades, {
|
|
23076
|
+
key,
|
|
23077
|
+
shades: typeof shades === "object" ? shades : { DEFAULT: shades },
|
|
23078
|
+
"get-name": (shade) => {
|
|
23079
|
+
var _a2;
|
|
23080
|
+
return ((_a2 = $setup.config.prefix) != null ? _a2 : "") + (shade === "DEFAULT" ? `border-${key}` : `border-${key}-${shade}`);
|
|
23081
|
+
},
|
|
23082
|
+
search: $setup.search
|
|
23083
|
+
}, {
|
|
23084
|
+
default: withCtx(({ color }) => [
|
|
23085
|
+
createBaseVNode("div", {
|
|
23086
|
+
class: "shade border",
|
|
23087
|
+
style: normalizeStyle({
|
|
23088
|
+
borderColor: color
|
|
23089
|
+
})
|
|
23090
|
+
}, null, 4)
|
|
23091
|
+
]),
|
|
23092
|
+
_: 2
|
|
23093
|
+
}, 1032, ["shades", "get-name", "search"]);
|
|
23094
|
+
}), 128))
|
|
23095
|
+
]),
|
|
23096
|
+
_: 1
|
|
23097
|
+
}),
|
|
23098
|
+
createVNode(_component_Variant, {
|
|
23099
|
+
id: "padding",
|
|
23100
|
+
title: "Padding",
|
|
23101
|
+
icon: "carbon:area"
|
|
23102
|
+
}, {
|
|
23103
|
+
default: withCtx(() => [
|
|
23104
|
+
createVNode(_component_HstTokenList, {
|
|
23105
|
+
tokens: $setup.config.theme.padding,
|
|
23106
|
+
"get-name": (key) => {
|
|
23107
|
+
var _a2;
|
|
23108
|
+
return `${(_a2 = $setup.config.prefix) != null ? _a2 : ""}p-${key}`;
|
|
23109
|
+
}
|
|
23123
23110
|
}, {
|
|
23124
|
-
default: withCtx(() => [
|
|
23125
|
-
|
|
23126
|
-
|
|
23127
|
-
|
|
23128
|
-
|
|
23129
|
-
|
|
23130
|
-
|
|
23131
|
-
}, {
|
|
23132
|
-
default: withCtx(({ token }) => [
|
|
23133
|
-
createBaseVNode("div", {
|
|
23134
|
-
class: "margin",
|
|
23135
|
-
style: normalizeStyle({
|
|
23136
|
-
padding: token.value
|
|
23137
|
-
})
|
|
23138
|
-
}, _hoisted_4, 4)
|
|
23139
|
-
]),
|
|
23140
|
-
_: 1
|
|
23141
|
-
}, 8, ["tokens", "get-name"])
|
|
23111
|
+
default: withCtx(({ token }) => [
|
|
23112
|
+
createBaseVNode("div", {
|
|
23113
|
+
class: "padding",
|
|
23114
|
+
style: normalizeStyle({
|
|
23115
|
+
padding: token.value
|
|
23116
|
+
})
|
|
23117
|
+
}, _hoisted_2, 4)
|
|
23142
23118
|
]),
|
|
23143
23119
|
_: 1
|
|
23144
|
-
})
|
|
23145
|
-
|
|
23146
|
-
|
|
23147
|
-
|
|
23148
|
-
|
|
23120
|
+
}, 8, ["tokens", "get-name"])
|
|
23121
|
+
]),
|
|
23122
|
+
_: 1
|
|
23123
|
+
}),
|
|
23124
|
+
createVNode(_component_Variant, {
|
|
23125
|
+
id: "margin",
|
|
23126
|
+
title: "Margin",
|
|
23127
|
+
icon: "carbon:area"
|
|
23128
|
+
}, {
|
|
23129
|
+
default: withCtx(() => [
|
|
23130
|
+
createVNode(_component_HstTokenList, {
|
|
23131
|
+
tokens: $setup.config.theme.margin,
|
|
23132
|
+
"get-name": (key) => {
|
|
23133
|
+
var _a2;
|
|
23134
|
+
return `${(_a2 = $setup.config.prefix) != null ? _a2 : ""}m-${key}`;
|
|
23135
|
+
}
|
|
23149
23136
|
}, {
|
|
23150
|
-
|
|
23151
|
-
|
|
23152
|
-
|
|
23153
|
-
|
|
23154
|
-
|
|
23155
|
-
|
|
23156
|
-
},
|
|
23157
|
-
]),
|
|
23158
|
-
default: withCtx(() => [
|
|
23159
|
-
createVNode(_component_HstTokenList, {
|
|
23160
|
-
tokens: config2.theme.fontSize,
|
|
23161
|
-
"get-name": (key) => {
|
|
23162
|
-
var _a2;
|
|
23163
|
-
return `${(_a2 = config2.prefix) != null ? _a2 : ""}text-${key}`;
|
|
23164
|
-
}
|
|
23165
|
-
}, {
|
|
23166
|
-
default: withCtx(({ token }) => [
|
|
23167
|
-
createBaseVNode("div", {
|
|
23168
|
-
class: "truncate",
|
|
23169
|
-
style: normalizeStyle(__spreadValues2({
|
|
23170
|
-
fontSize: token.value[0]
|
|
23171
|
-
}, token.value[1]))
|
|
23172
|
-
}, toDisplayString(sampleText.value), 5)
|
|
23173
|
-
]),
|
|
23174
|
-
_: 1
|
|
23175
|
-
}, 8, ["tokens", "get-name"])
|
|
23137
|
+
default: withCtx(({ token }) => [
|
|
23138
|
+
createBaseVNode("div", {
|
|
23139
|
+
class: "margin",
|
|
23140
|
+
style: normalizeStyle({
|
|
23141
|
+
padding: token.value
|
|
23142
|
+
})
|
|
23143
|
+
}, _hoisted_4, 4)
|
|
23176
23144
|
]),
|
|
23177
23145
|
_: 1
|
|
23178
|
-
})
|
|
23179
|
-
|
|
23180
|
-
|
|
23181
|
-
|
|
23182
|
-
|
|
23146
|
+
}, 8, ["tokens", "get-name"])
|
|
23147
|
+
]),
|
|
23148
|
+
_: 1
|
|
23149
|
+
}),
|
|
23150
|
+
createVNode(_component_Variant, {
|
|
23151
|
+
id: "font-size",
|
|
23152
|
+
title: "Font Size",
|
|
23153
|
+
icon: "carbon:text-font"
|
|
23154
|
+
}, {
|
|
23155
|
+
controls: withCtx(() => [
|
|
23156
|
+
createVNode(_component_HstTextarea, {
|
|
23157
|
+
modelValue: $setup.sampleText,
|
|
23158
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.sampleText = $event),
|
|
23159
|
+
title: "Sample text",
|
|
23160
|
+
rows: "5"
|
|
23161
|
+
}, null, 8, ["modelValue"])
|
|
23162
|
+
]),
|
|
23163
|
+
default: withCtx(() => [
|
|
23164
|
+
createVNode(_component_HstTokenList, {
|
|
23165
|
+
tokens: $setup.config.theme.fontSize,
|
|
23166
|
+
"get-name": (key) => {
|
|
23167
|
+
var _a2;
|
|
23168
|
+
return `${(_a2 = $setup.config.prefix) != null ? _a2 : ""}text-${key}`;
|
|
23169
|
+
}
|
|
23183
23170
|
}, {
|
|
23184
|
-
|
|
23185
|
-
|
|
23186
|
-
|
|
23187
|
-
|
|
23188
|
-
|
|
23189
|
-
|
|
23190
|
-
},
|
|
23191
|
-
createVNode(_component_HstNumber, {
|
|
23192
|
-
modelValue: fontSize.value,
|
|
23193
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => fontSize.value = $event),
|
|
23194
|
-
title: "Font size",
|
|
23195
|
-
min: "1"
|
|
23196
|
-
}, null, 8, ["modelValue"])
|
|
23197
|
-
]),
|
|
23198
|
-
default: withCtx(() => [
|
|
23199
|
-
createVNode(_component_HstTokenList, {
|
|
23200
|
-
tokens: config2.theme.fontWeight,
|
|
23201
|
-
"get-name": (key) => {
|
|
23202
|
-
var _a2;
|
|
23203
|
-
return `${(_a2 = config2.prefix) != null ? _a2 : ""}font-${key}`;
|
|
23204
|
-
}
|
|
23205
|
-
}, {
|
|
23206
|
-
default: withCtx(({ token }) => [
|
|
23207
|
-
createBaseVNode("div", {
|
|
23208
|
-
class: "truncate",
|
|
23209
|
-
style: normalizeStyle({
|
|
23210
|
-
fontWeight: token.value,
|
|
23211
|
-
fontSize: `${fontSize.value}px`
|
|
23212
|
-
})
|
|
23213
|
-
}, toDisplayString(sampleText.value), 5)
|
|
23214
|
-
]),
|
|
23215
|
-
_: 1
|
|
23216
|
-
}, 8, ["tokens", "get-name"])
|
|
23171
|
+
default: withCtx(({ token }) => [
|
|
23172
|
+
createBaseVNode("div", {
|
|
23173
|
+
class: "truncate",
|
|
23174
|
+
style: normalizeStyle(__spreadValues2({
|
|
23175
|
+
fontSize: token.value[0]
|
|
23176
|
+
}, token.value[1]))
|
|
23177
|
+
}, toDisplayString($setup.sampleText), 5)
|
|
23217
23178
|
]),
|
|
23218
23179
|
_: 1
|
|
23219
|
-
})
|
|
23220
|
-
|
|
23221
|
-
|
|
23222
|
-
|
|
23223
|
-
|
|
23180
|
+
}, 8, ["tokens", "get-name"])
|
|
23181
|
+
]),
|
|
23182
|
+
_: 1
|
|
23183
|
+
}),
|
|
23184
|
+
createVNode(_component_Variant, {
|
|
23185
|
+
id: "font-weight",
|
|
23186
|
+
title: "Font Weight",
|
|
23187
|
+
icon: "carbon:text-font"
|
|
23188
|
+
}, {
|
|
23189
|
+
controls: withCtx(() => [
|
|
23190
|
+
createVNode(_component_HstTextarea, {
|
|
23191
|
+
modelValue: $setup.sampleText,
|
|
23192
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.sampleText = $event),
|
|
23193
|
+
title: "Sample text",
|
|
23194
|
+
rows: "5"
|
|
23195
|
+
}, null, 8, ["modelValue"]),
|
|
23196
|
+
createVNode(_component_HstNumber, {
|
|
23197
|
+
modelValue: $setup.fontSize,
|
|
23198
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $setup.fontSize = $event),
|
|
23199
|
+
title: "Font size",
|
|
23200
|
+
min: "1"
|
|
23201
|
+
}, null, 8, ["modelValue"])
|
|
23202
|
+
]),
|
|
23203
|
+
default: withCtx(() => [
|
|
23204
|
+
createVNode(_component_HstTokenList, {
|
|
23205
|
+
tokens: $setup.config.theme.fontWeight,
|
|
23206
|
+
"get-name": (key) => {
|
|
23207
|
+
var _a2;
|
|
23208
|
+
return `${(_a2 = $setup.config.prefix) != null ? _a2 : ""}font-${key}`;
|
|
23209
|
+
}
|
|
23224
23210
|
}, {
|
|
23225
|
-
|
|
23226
|
-
|
|
23227
|
-
|
|
23228
|
-
|
|
23229
|
-
|
|
23230
|
-
|
|
23231
|
-
|
|
23232
|
-
|
|
23233
|
-
modelValue: fontSize.value,
|
|
23234
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => fontSize.value = $event),
|
|
23235
|
-
title: "Font size",
|
|
23236
|
-
min: "1"
|
|
23237
|
-
}, null, 8, ["modelValue"])
|
|
23238
|
-
]),
|
|
23239
|
-
default: withCtx(() => [
|
|
23240
|
-
createVNode(_component_HstTokenList, {
|
|
23241
|
-
tokens: config2.theme.fontFamily,
|
|
23242
|
-
"get-name": (key) => {
|
|
23243
|
-
var _a2;
|
|
23244
|
-
return `${(_a2 = config2.prefix) != null ? _a2 : ""}font-${key}`;
|
|
23245
|
-
}
|
|
23246
|
-
}, {
|
|
23247
|
-
default: withCtx(({ token }) => [
|
|
23248
|
-
createBaseVNode("div", {
|
|
23249
|
-
class: "truncate",
|
|
23250
|
-
style: normalizeStyle({
|
|
23251
|
-
fontFamily: token.value,
|
|
23252
|
-
fontSize: `${fontSize.value}px`
|
|
23253
|
-
})
|
|
23254
|
-
}, toDisplayString(sampleText.value), 5)
|
|
23255
|
-
]),
|
|
23256
|
-
_: 1
|
|
23257
|
-
}, 8, ["tokens", "get-name"])
|
|
23211
|
+
default: withCtx(({ token }) => [
|
|
23212
|
+
createBaseVNode("div", {
|
|
23213
|
+
class: "truncate",
|
|
23214
|
+
style: normalizeStyle({
|
|
23215
|
+
fontWeight: token.value,
|
|
23216
|
+
fontSize: `${$setup.fontSize}px`
|
|
23217
|
+
})
|
|
23218
|
+
}, toDisplayString($setup.sampleText), 5)
|
|
23258
23219
|
]),
|
|
23259
23220
|
_: 1
|
|
23260
|
-
})
|
|
23261
|
-
|
|
23262
|
-
|
|
23263
|
-
|
|
23264
|
-
|
|
23221
|
+
}, 8, ["tokens", "get-name"])
|
|
23222
|
+
]),
|
|
23223
|
+
_: 1
|
|
23224
|
+
}),
|
|
23225
|
+
createVNode(_component_Variant, {
|
|
23226
|
+
id: "font-family",
|
|
23227
|
+
title: "Font Family",
|
|
23228
|
+
icon: "carbon:text-font"
|
|
23229
|
+
}, {
|
|
23230
|
+
controls: withCtx(() => [
|
|
23231
|
+
createVNode(_component_HstTextarea, {
|
|
23232
|
+
modelValue: $setup.sampleText,
|
|
23233
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $setup.sampleText = $event),
|
|
23234
|
+
title: "Sample text",
|
|
23235
|
+
rows: "5"
|
|
23236
|
+
}, null, 8, ["modelValue"]),
|
|
23237
|
+
createVNode(_component_HstNumber, {
|
|
23238
|
+
modelValue: $setup.fontSize,
|
|
23239
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $setup.fontSize = $event),
|
|
23240
|
+
title: "Font size",
|
|
23241
|
+
min: "1"
|
|
23242
|
+
}, null, 8, ["modelValue"])
|
|
23243
|
+
]),
|
|
23244
|
+
default: withCtx(() => [
|
|
23245
|
+
createVNode(_component_HstTokenList, {
|
|
23246
|
+
tokens: $setup.config.theme.fontFamily,
|
|
23247
|
+
"get-name": (key) => {
|
|
23248
|
+
var _a2;
|
|
23249
|
+
return `${(_a2 = $setup.config.prefix) != null ? _a2 : ""}font-${key}`;
|
|
23250
|
+
}
|
|
23265
23251
|
}, {
|
|
23266
|
-
|
|
23267
|
-
|
|
23268
|
-
|
|
23269
|
-
|
|
23270
|
-
|
|
23271
|
-
|
|
23272
|
-
|
|
23273
|
-
|
|
23274
|
-
modelValue: fontSize.value,
|
|
23275
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => fontSize.value = $event),
|
|
23276
|
-
title: "Font size",
|
|
23277
|
-
min: "1"
|
|
23278
|
-
}, null, 8, ["modelValue"])
|
|
23279
|
-
]),
|
|
23280
|
-
default: withCtx(() => [
|
|
23281
|
-
createVNode(_component_HstTokenList, {
|
|
23282
|
-
tokens: config2.theme.letterSpacing,
|
|
23283
|
-
"get-name": (key) => {
|
|
23284
|
-
var _a2;
|
|
23285
|
-
return `${(_a2 = config2.prefix) != null ? _a2 : ""}tracking-${key}`;
|
|
23286
|
-
}
|
|
23287
|
-
}, {
|
|
23288
|
-
default: withCtx(({ token }) => [
|
|
23289
|
-
createBaseVNode("div", {
|
|
23290
|
-
class: "truncate",
|
|
23291
|
-
style: normalizeStyle({
|
|
23292
|
-
letterSpacing: token.value,
|
|
23293
|
-
fontSize: `${fontSize.value}px`
|
|
23294
|
-
})
|
|
23295
|
-
}, toDisplayString(sampleText.value), 5)
|
|
23296
|
-
]),
|
|
23297
|
-
_: 1
|
|
23298
|
-
}, 8, ["tokens", "get-name"])
|
|
23252
|
+
default: withCtx(({ token }) => [
|
|
23253
|
+
createBaseVNode("div", {
|
|
23254
|
+
class: "truncate",
|
|
23255
|
+
style: normalizeStyle({
|
|
23256
|
+
fontFamily: token.value,
|
|
23257
|
+
fontSize: `${$setup.fontSize}px`
|
|
23258
|
+
})
|
|
23259
|
+
}, toDisplayString($setup.sampleText), 5)
|
|
23299
23260
|
]),
|
|
23300
23261
|
_: 1
|
|
23301
|
-
})
|
|
23302
|
-
|
|
23303
|
-
|
|
23304
|
-
|
|
23305
|
-
|
|
23262
|
+
}, 8, ["tokens", "get-name"])
|
|
23263
|
+
]),
|
|
23264
|
+
_: 1
|
|
23265
|
+
}),
|
|
23266
|
+
createVNode(_component_Variant, {
|
|
23267
|
+
id: "letter-spacing",
|
|
23268
|
+
title: "Letter Spacing",
|
|
23269
|
+
icon: "carbon:text-font"
|
|
23270
|
+
}, {
|
|
23271
|
+
controls: withCtx(() => [
|
|
23272
|
+
createVNode(_component_HstTextarea, {
|
|
23273
|
+
modelValue: $setup.sampleText,
|
|
23274
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $setup.sampleText = $event),
|
|
23275
|
+
title: "Sample text",
|
|
23276
|
+
rows: "5"
|
|
23277
|
+
}, null, 8, ["modelValue"]),
|
|
23278
|
+
createVNode(_component_HstNumber, {
|
|
23279
|
+
modelValue: $setup.fontSize,
|
|
23280
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $setup.fontSize = $event),
|
|
23281
|
+
title: "Font size",
|
|
23282
|
+
min: "1"
|
|
23283
|
+
}, null, 8, ["modelValue"])
|
|
23284
|
+
]),
|
|
23285
|
+
default: withCtx(() => [
|
|
23286
|
+
createVNode(_component_HstTokenList, {
|
|
23287
|
+
tokens: $setup.config.theme.letterSpacing,
|
|
23288
|
+
"get-name": (key) => {
|
|
23289
|
+
var _a2;
|
|
23290
|
+
return `${(_a2 = $setup.config.prefix) != null ? _a2 : ""}tracking-${key}`;
|
|
23291
|
+
}
|
|
23306
23292
|
}, {
|
|
23307
|
-
|
|
23308
|
-
|
|
23309
|
-
|
|
23310
|
-
|
|
23311
|
-
|
|
23312
|
-
|
|
23313
|
-
|
|
23314
|
-
|
|
23315
|
-
modelValue: fontSize.value,
|
|
23316
|
-
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => fontSize.value = $event),
|
|
23317
|
-
title: "Font size",
|
|
23318
|
-
min: "1"
|
|
23319
|
-
}, null, 8, ["modelValue"])
|
|
23320
|
-
]),
|
|
23321
|
-
default: withCtx(() => [
|
|
23322
|
-
createVNode(_component_HstTokenList, {
|
|
23323
|
-
tokens: config2.theme.lineHeight,
|
|
23324
|
-
"get-name": (key) => {
|
|
23325
|
-
var _a2;
|
|
23326
|
-
return `${(_a2 = config2.prefix) != null ? _a2 : ""}leading-${key}`;
|
|
23327
|
-
}
|
|
23328
|
-
}, {
|
|
23329
|
-
default: withCtx(({ token }) => [
|
|
23330
|
-
createBaseVNode("div", {
|
|
23331
|
-
style: normalizeStyle({
|
|
23332
|
-
lineHeight: token.value,
|
|
23333
|
-
fontSize: `${fontSize.value}px`
|
|
23334
|
-
})
|
|
23335
|
-
}, toDisplayString(sampleText.value), 5)
|
|
23336
|
-
]),
|
|
23337
|
-
_: 1
|
|
23338
|
-
}, 8, ["tokens", "get-name"])
|
|
23293
|
+
default: withCtx(({ token }) => [
|
|
23294
|
+
createBaseVNode("div", {
|
|
23295
|
+
class: "truncate",
|
|
23296
|
+
style: normalizeStyle({
|
|
23297
|
+
letterSpacing: token.value,
|
|
23298
|
+
fontSize: `${$setup.fontSize}px`
|
|
23299
|
+
})
|
|
23300
|
+
}, toDisplayString($setup.sampleText), 5)
|
|
23339
23301
|
]),
|
|
23340
23302
|
_: 1
|
|
23341
|
-
})
|
|
23342
|
-
|
|
23343
|
-
|
|
23344
|
-
|
|
23345
|
-
|
|
23303
|
+
}, 8, ["tokens", "get-name"])
|
|
23304
|
+
]),
|
|
23305
|
+
_: 1
|
|
23306
|
+
}),
|
|
23307
|
+
createVNode(_component_Variant, {
|
|
23308
|
+
id: "line-height",
|
|
23309
|
+
title: "Line Height",
|
|
23310
|
+
icon: "carbon:text-font"
|
|
23311
|
+
}, {
|
|
23312
|
+
controls: withCtx(() => [
|
|
23313
|
+
createVNode(_component_HstTextarea, {
|
|
23314
|
+
modelValue: $setup.sampleText,
|
|
23315
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $setup.sampleText = $event),
|
|
23316
|
+
title: "Sample text",
|
|
23317
|
+
rows: "5"
|
|
23318
|
+
}, null, 8, ["modelValue"]),
|
|
23319
|
+
createVNode(_component_HstNumber, {
|
|
23320
|
+
modelValue: $setup.fontSize,
|
|
23321
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $setup.fontSize = $event),
|
|
23322
|
+
title: "Font size",
|
|
23323
|
+
min: "1"
|
|
23324
|
+
}, null, 8, ["modelValue"])
|
|
23325
|
+
]),
|
|
23326
|
+
default: withCtx(() => [
|
|
23327
|
+
createVNode(_component_HstTokenList, {
|
|
23328
|
+
tokens: $setup.config.theme.lineHeight,
|
|
23329
|
+
"get-name": (key) => {
|
|
23330
|
+
var _a2;
|
|
23331
|
+
return `${(_a2 = $setup.config.prefix) != null ? _a2 : ""}leading-${key}`;
|
|
23332
|
+
}
|
|
23346
23333
|
}, {
|
|
23347
|
-
default: withCtx(() => [
|
|
23348
|
-
|
|
23349
|
-
|
|
23350
|
-
|
|
23351
|
-
|
|
23352
|
-
|
|
23353
|
-
|
|
23354
|
-
"col-size": 180
|
|
23355
|
-
}, {
|
|
23356
|
-
default: withCtx(({ token }) => [
|
|
23357
|
-
createBaseVNode("div", {
|
|
23358
|
-
class: "drop-shadow",
|
|
23359
|
-
style: normalizeStyle({
|
|
23360
|
-
filter: `${(Array.isArray(token.value) ? token.value : [token.value]).map((v2) => `drop-shadow(${v2})`).join(" ")}`
|
|
23361
|
-
})
|
|
23362
|
-
}, null, 4)
|
|
23363
|
-
]),
|
|
23364
|
-
_: 1
|
|
23365
|
-
}, 8, ["tokens", "get-name"])
|
|
23334
|
+
default: withCtx(({ token }) => [
|
|
23335
|
+
createBaseVNode("div", {
|
|
23336
|
+
style: normalizeStyle({
|
|
23337
|
+
lineHeight: token.value,
|
|
23338
|
+
fontSize: `${$setup.fontSize}px`
|
|
23339
|
+
})
|
|
23340
|
+
}, toDisplayString($setup.sampleText), 5)
|
|
23366
23341
|
]),
|
|
23367
23342
|
_: 1
|
|
23368
|
-
})
|
|
23369
|
-
|
|
23370
|
-
|
|
23371
|
-
|
|
23372
|
-
|
|
23343
|
+
}, 8, ["tokens", "get-name"])
|
|
23344
|
+
]),
|
|
23345
|
+
_: 1
|
|
23346
|
+
}),
|
|
23347
|
+
createVNode(_component_Variant, {
|
|
23348
|
+
id: "drop-shadow",
|
|
23349
|
+
title: "Drop Shadow",
|
|
23350
|
+
icon: "carbon:shape-except"
|
|
23351
|
+
}, {
|
|
23352
|
+
default: withCtx(() => [
|
|
23353
|
+
createVNode(_component_HstTokenGrid, {
|
|
23354
|
+
tokens: $setup.config.theme.dropShadow,
|
|
23355
|
+
"get-name": (key) => {
|
|
23356
|
+
var _a2;
|
|
23357
|
+
return ((_a2 = $setup.config.prefix) != null ? _a2 : "") + (key === "DEFAULT" ? "drop-shadow" : `drop-shadow-${key}`);
|
|
23358
|
+
},
|
|
23359
|
+
"col-size": 180
|
|
23373
23360
|
}, {
|
|
23374
|
-
default: withCtx(() => [
|
|
23375
|
-
|
|
23376
|
-
|
|
23377
|
-
|
|
23378
|
-
|
|
23379
|
-
|
|
23380
|
-
|
|
23381
|
-
"col-size": 180
|
|
23382
|
-
}, {
|
|
23383
|
-
default: withCtx(({ token }) => [
|
|
23384
|
-
createBaseVNode("div", {
|
|
23385
|
-
class: "border-radius",
|
|
23386
|
-
style: normalizeStyle({
|
|
23387
|
-
borderRadius: token.value
|
|
23388
|
-
})
|
|
23389
|
-
}, null, 4)
|
|
23390
|
-
]),
|
|
23391
|
-
_: 1
|
|
23392
|
-
}, 8, ["tokens", "get-name"])
|
|
23361
|
+
default: withCtx(({ token }) => [
|
|
23362
|
+
createBaseVNode("div", {
|
|
23363
|
+
class: "drop-shadow",
|
|
23364
|
+
style: normalizeStyle({
|
|
23365
|
+
filter: `${(Array.isArray(token.value) ? token.value : [token.value]).map((v2) => `drop-shadow(${v2})`).join(" ")}`
|
|
23366
|
+
})
|
|
23367
|
+
}, null, 4)
|
|
23393
23368
|
]),
|
|
23394
23369
|
_: 1
|
|
23395
|
-
})
|
|
23396
|
-
|
|
23397
|
-
|
|
23398
|
-
|
|
23399
|
-
|
|
23370
|
+
}, 8, ["tokens", "get-name"])
|
|
23371
|
+
]),
|
|
23372
|
+
_: 1
|
|
23373
|
+
}),
|
|
23374
|
+
createVNode(_component_Variant, {
|
|
23375
|
+
id: "border-radius",
|
|
23376
|
+
title: "Border Radius",
|
|
23377
|
+
icon: "carbon:condition-wait-point"
|
|
23378
|
+
}, {
|
|
23379
|
+
default: withCtx(() => [
|
|
23380
|
+
createVNode(_component_HstTokenGrid, {
|
|
23381
|
+
tokens: $setup.config.theme.borderRadius,
|
|
23382
|
+
"get-name": (key) => {
|
|
23383
|
+
var _a2;
|
|
23384
|
+
return ((_a2 = $setup.config.prefix) != null ? _a2 : "") + (key === "DEFAULT" ? "rounded" : `rounded-${key}`);
|
|
23385
|
+
},
|
|
23386
|
+
"col-size": 180
|
|
23400
23387
|
}, {
|
|
23401
|
-
default: withCtx(() => [
|
|
23402
|
-
|
|
23403
|
-
|
|
23404
|
-
|
|
23405
|
-
|
|
23406
|
-
|
|
23407
|
-
|
|
23408
|
-
"col-size": 180
|
|
23409
|
-
}, {
|
|
23410
|
-
default: withCtx(({ token }) => [
|
|
23411
|
-
createBaseVNode("div", {
|
|
23412
|
-
class: "border-width",
|
|
23413
|
-
style: normalizeStyle({
|
|
23414
|
-
borderWidth: token.value
|
|
23415
|
-
})
|
|
23416
|
-
}, null, 4)
|
|
23417
|
-
]),
|
|
23418
|
-
_: 1
|
|
23419
|
-
}, 8, ["tokens", "get-name"])
|
|
23388
|
+
default: withCtx(({ token }) => [
|
|
23389
|
+
createBaseVNode("div", {
|
|
23390
|
+
class: "border-radius",
|
|
23391
|
+
style: normalizeStyle({
|
|
23392
|
+
borderRadius: token.value
|
|
23393
|
+
})
|
|
23394
|
+
}, null, 4)
|
|
23420
23395
|
]),
|
|
23421
23396
|
_: 1
|
|
23422
|
-
})
|
|
23423
|
-
|
|
23424
|
-
|
|
23425
|
-
|
|
23426
|
-
|
|
23397
|
+
}, 8, ["tokens", "get-name"])
|
|
23398
|
+
]),
|
|
23399
|
+
_: 1
|
|
23400
|
+
}),
|
|
23401
|
+
createVNode(_component_Variant, {
|
|
23402
|
+
id: "border-width",
|
|
23403
|
+
title: "Border Width",
|
|
23404
|
+
icon: "carbon:checkbox"
|
|
23405
|
+
}, {
|
|
23406
|
+
default: withCtx(() => [
|
|
23407
|
+
createVNode(_component_HstTokenGrid, {
|
|
23408
|
+
tokens: $setup.config.theme.borderWidth,
|
|
23409
|
+
"get-name": (key) => {
|
|
23410
|
+
var _a2;
|
|
23411
|
+
return ((_a2 = $setup.config.prefix) != null ? _a2 : "") + (key === "DEFAULT" ? "border" : `border-${key}`);
|
|
23412
|
+
},
|
|
23413
|
+
"col-size": 180
|
|
23427
23414
|
}, {
|
|
23428
|
-
default: withCtx(() => [
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
|
|
23433
|
-
|
|
23434
|
-
|
|
23435
|
-
}, {
|
|
23436
|
-
default: withCtx(({ token }) => [
|
|
23437
|
-
createBaseVNode("div", _hoisted_5, [
|
|
23438
|
-
createBaseVNode("div", {
|
|
23439
|
-
class: "width-box",
|
|
23440
|
-
style: normalizeStyle({
|
|
23441
|
-
width: token.value
|
|
23442
|
-
})
|
|
23443
|
-
}, null, 4)
|
|
23444
|
-
])
|
|
23445
|
-
]),
|
|
23446
|
-
_: 1
|
|
23447
|
-
}, 8, ["tokens", "get-name"])
|
|
23415
|
+
default: withCtx(({ token }) => [
|
|
23416
|
+
createBaseVNode("div", {
|
|
23417
|
+
class: "border-width",
|
|
23418
|
+
style: normalizeStyle({
|
|
23419
|
+
borderWidth: token.value
|
|
23420
|
+
})
|
|
23421
|
+
}, null, 4)
|
|
23448
23422
|
]),
|
|
23449
23423
|
_: 1
|
|
23450
|
-
})
|
|
23451
|
-
|
|
23452
|
-
|
|
23453
|
-
|
|
23454
|
-
|
|
23424
|
+
}, 8, ["tokens", "get-name"])
|
|
23425
|
+
]),
|
|
23426
|
+
_: 1
|
|
23427
|
+
}),
|
|
23428
|
+
createVNode(_component_Variant, {
|
|
23429
|
+
id: "width",
|
|
23430
|
+
title: "Width",
|
|
23431
|
+
icon: "carbon:pan-horizontal"
|
|
23432
|
+
}, {
|
|
23433
|
+
default: withCtx(() => [
|
|
23434
|
+
createVNode(_component_HstTokenList, {
|
|
23435
|
+
tokens: $setup.config.theme.width,
|
|
23436
|
+
"get-name": (key) => {
|
|
23437
|
+
var _a2;
|
|
23438
|
+
return ((_a2 = $setup.config.prefix) != null ? _a2 : "") + (key === "DEFAULT" ? "w" : `w-${key}`);
|
|
23439
|
+
}
|
|
23455
23440
|
}, {
|
|
23456
|
-
default: withCtx(() => [
|
|
23457
|
-
|
|
23458
|
-
|
|
23459
|
-
|
|
23460
|
-
|
|
23461
|
-
|
|
23462
|
-
|
|
23463
|
-
|
|
23464
|
-
|
|
23465
|
-
createBaseVNode("div", {
|
|
23466
|
-
class: "height",
|
|
23467
|
-
style: normalizeStyle({
|
|
23468
|
-
height: token.value
|
|
23469
|
-
})
|
|
23470
|
-
}, null, 4)
|
|
23471
|
-
]),
|
|
23472
|
-
_: 1
|
|
23473
|
-
}, 8, ["tokens", "get-name"])
|
|
23441
|
+
default: withCtx(({ token }) => [
|
|
23442
|
+
createBaseVNode("div", _hoisted_5, [
|
|
23443
|
+
createBaseVNode("div", {
|
|
23444
|
+
class: "width-box",
|
|
23445
|
+
style: normalizeStyle({
|
|
23446
|
+
width: token.value
|
|
23447
|
+
})
|
|
23448
|
+
}, null, 4)
|
|
23449
|
+
])
|
|
23474
23450
|
]),
|
|
23475
23451
|
_: 1
|
|
23476
|
-
})
|
|
23477
|
-
|
|
23478
|
-
|
|
23479
|
-
|
|
23480
|
-
|
|
23452
|
+
}, 8, ["tokens", "get-name"])
|
|
23453
|
+
]),
|
|
23454
|
+
_: 1
|
|
23455
|
+
}),
|
|
23456
|
+
createVNode(_component_Variant, {
|
|
23457
|
+
id: "height",
|
|
23458
|
+
title: "Height",
|
|
23459
|
+
icon: "carbon:pan-vertical"
|
|
23460
|
+
}, {
|
|
23461
|
+
default: withCtx(() => [
|
|
23462
|
+
createVNode(_component_HstTokenList, {
|
|
23463
|
+
tokens: $setup.config.theme.height,
|
|
23464
|
+
"get-name": (key) => {
|
|
23465
|
+
var _a2;
|
|
23466
|
+
return ((_a2 = $setup.config.prefix) != null ? _a2 : "") + (key === "DEFAULT" ? "h" : `h-${key}`);
|
|
23467
|
+
}
|
|
23481
23468
|
}, {
|
|
23482
|
-
default: withCtx(() => [
|
|
23483
|
-
createBaseVNode("
|
|
23469
|
+
default: withCtx(({ token }) => [
|
|
23470
|
+
createBaseVNode("div", {
|
|
23471
|
+
class: "height",
|
|
23472
|
+
style: normalizeStyle({
|
|
23473
|
+
height: token.value
|
|
23474
|
+
})
|
|
23475
|
+
}, null, 4)
|
|
23484
23476
|
]),
|
|
23485
23477
|
_: 1
|
|
23486
|
-
})
|
|
23478
|
+
}, 8, ["tokens", "get-name"])
|
|
23487
23479
|
]),
|
|
23488
23480
|
_: 1
|
|
23489
|
-
})
|
|
23490
|
-
|
|
23491
|
-
|
|
23492
|
-
|
|
23493
|
-
|
|
23481
|
+
}),
|
|
23482
|
+
createVNode(_component_Variant, {
|
|
23483
|
+
id: "full-config",
|
|
23484
|
+
title: "Full Config",
|
|
23485
|
+
icon: "carbon:code"
|
|
23486
|
+
}, {
|
|
23487
|
+
default: withCtx(() => [
|
|
23488
|
+
createBaseVNode("pre", null, toDisplayString($setup.config))
|
|
23489
|
+
]),
|
|
23490
|
+
_: 1
|
|
23491
|
+
})
|
|
23492
|
+
]),
|
|
23493
|
+
_: 1
|
|
23494
|
+
});
|
|
23495
|
+
}
|
|
23496
|
+
var Tailwind_story = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9e4c73b2"], ["__file", "/home/akryum/Projects/histoire/packages/histoire-controls/node_modules/.histoire/plugins/tailwind-tokens/Tailwind.story.vue"]]);
|
|
23494
23497
|
var Tailwind_story$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23495
23498
|
__proto__: null,
|
|
23496
23499
|
"default": Tailwind_story
|