@skewedaspect/sleekspace-ui 0.8.1 → 0.9.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/components/Dropdown/SkDropdown.vue.d.ts +9 -1
- package/dist/components/Dropdown/types.d.ts +2 -1
- package/dist/components/NavBar/SkNavBar.vue.d.ts +9 -1
- package/dist/components/NavBar/context.d.ts +2 -0
- package/dist/components/NavBar/types.d.ts +5 -1
- package/dist/components/Page/SkPage.vue.d.ts +9 -0
- package/dist/components/ScrollArea/SkScrollArea.vue.d.ts +105 -4
- package/dist/composables/useCustomColors.d.ts +18 -56
- package/{src → dist}/global.d.ts +6 -2
- package/dist/sleekspace-ui.css +4253 -1251
- package/dist/sleekspace-ui.es.js +204 -109
- package/dist/sleekspace-ui.umd.js +204 -109
- package/dist/static/classes.d.ts +18 -0
- package/dist/static/components/alert.d.ts +12 -0
- package/dist/static/components/avatar.d.ts +9 -0
- package/dist/static/components/breadcrumbs.d.ts +6 -0
- package/dist/static/components/button.d.ts +13 -0
- package/dist/static/components/card.d.ts +5 -0
- package/dist/static/components/checkbox.d.ts +10 -0
- package/dist/static/components/colorPicker.d.ts +8 -0
- package/dist/static/components/divider.d.ts +8 -0
- package/dist/static/components/dropdown.d.ts +8 -0
- package/dist/static/components/field.d.ts +15 -0
- package/dist/static/components/group.d.ts +5 -0
- package/dist/static/components/input.d.ts +14 -0
- package/dist/static/components/navBar.d.ts +16 -0
- package/dist/static/components/numberInput.d.ts +15 -0
- package/dist/static/components/page.d.ts +9 -0
- package/dist/static/components/pagination.d.ts +5 -0
- package/dist/static/components/panel.d.ts +11 -0
- package/dist/static/components/progress.d.ts +9 -0
- package/dist/static/components/radio.d.ts +11 -0
- package/dist/static/components/select.d.ts +10 -0
- package/dist/static/components/sidebar.d.ts +9 -0
- package/dist/static/components/skeleton.d.ts +11 -0
- package/dist/static/components/slider.d.ts +12 -0
- package/dist/static/components/spinner.d.ts +12 -0
- package/dist/static/components/switchInput.d.ts +10 -0
- package/dist/static/components/table.d.ts +12 -0
- package/dist/static/components/tag.d.ts +8 -0
- package/dist/static/components/tagsInput.d.ts +7 -0
- package/dist/static/components/textarea.d.ts +12 -0
- package/dist/static/components/toolbar.d.ts +12 -0
- package/dist/static/components/tooltip.d.ts +7 -0
- package/dist/static/escape.d.ts +2 -0
- package/dist/static/index.cjs.js +1 -0
- package/dist/static/index.d.ts +68 -0
- package/dist/static/index.es.js +732 -0
- package/dist/static/render.d.ts +12 -0
- package/dist/static/specs.d.ts +2 -0
- package/dist/static/types.d.ts +43 -0
- package/dist/tokens.css +322 -0
- package/dist/types/index.d.ts +36 -0
- package/docs/guides/installation.md +8 -2
- package/docs/guides/pure-css/_meta.yaml +8 -0
- package/docs/guides/pure-css/class-api.md +1070 -0
- package/docs/guides/pure-css/custom-elements.md +574 -0
- package/docs/guides/pure-css/index.md +86 -0
- package/docs/guides/pure-css/limitations.md +152 -0
- package/docs/guides/pure-css/static-helpers.md +1203 -0
- package/llms-full.txt +3736 -261
- package/package.json +16 -5
- package/src/components/Card/SkCard.vue +1 -0
- package/src/components/ContextMenu/SkContextMenuRadioGroup.vue +4 -1
- package/src/components/Dropdown/SkDropdown.vue +20 -3
- package/src/components/Dropdown/SkDropdownRadioGroup.vue +4 -1
- package/src/components/Dropdown/types.ts +2 -1
- package/src/components/NavBar/SkNavBar.vue +14 -4
- package/src/components/NavBar/context.ts +4 -2
- package/src/components/NavBar/types.ts +6 -1
- package/src/components/Page/SkPage.vue +11 -0
- package/src/components/Panel/SkPanel.vue +2 -1
- package/src/components/ScrollArea/SkScrollArea.vue +78 -5
- package/src/components/TreeView/SkTreeView.vue +7 -2
- package/src/composables/useCustomColors.ts +86 -77
- package/src/composables/usePortalContext.test.ts +0 -2
- package/src/shims.d.ts +10 -0
- package/src/static/__tests__/parity.test.ts +717 -0
- package/src/static/__tests__/parityHarness.test.ts +98 -0
- package/src/static/__tests__/parityHarness.ts +260 -0
- package/src/static/classes.test.ts +82 -0
- package/src/static/classes.ts +111 -0
- package/src/static/components/__tests__/helpers.test.ts +837 -0
- package/src/static/components/alert.ts +117 -0
- package/src/static/components/avatar.ts +86 -0
- package/src/static/components/breadcrumbs.ts +28 -0
- package/src/static/components/button.ts +75 -0
- package/src/static/components/card.ts +27 -0
- package/src/static/components/checkbox.ts +48 -0
- package/src/static/components/colorPicker.ts +45 -0
- package/src/static/components/divider.ts +39 -0
- package/src/static/components/dropdown.ts +36 -0
- package/src/static/components/field.ts +86 -0
- package/src/static/components/group.ts +27 -0
- package/src/static/components/input.ts +55 -0
- package/src/static/components/navBar.ts +94 -0
- package/src/static/components/numberInput.ts +64 -0
- package/src/static/components/page.ts +31 -0
- package/src/static/components/pagination.ts +27 -0
- package/src/static/components/panel.ts +33 -0
- package/src/static/components/progress.ts +31 -0
- package/src/static/components/radio.ts +53 -0
- package/src/static/components/select.ts +51 -0
- package/src/static/components/sidebar.ts +85 -0
- package/src/static/components/skeleton.ts +66 -0
- package/src/static/components/slider.ts +50 -0
- package/src/static/components/spinner.ts +94 -0
- package/src/static/components/switchInput.ts +49 -0
- package/src/static/components/table.ts +88 -0
- package/src/static/components/tag.ts +76 -0
- package/src/static/components/tagsInput.ts +35 -0
- package/src/static/components/textarea.ts +53 -0
- package/src/static/components/toolbar.ts +74 -0
- package/src/static/components/tooltip.ts +29 -0
- package/src/static/escape.test.ts +53 -0
- package/src/static/escape.ts +28 -0
- package/src/static/generated/defaults.ts +378 -0
- package/src/static/generated/propTypes.ts +425 -0
- package/src/static/index.ts +116 -0
- package/src/static/render.test.ts +83 -0
- package/src/static/render.ts +76 -0
- package/src/static/specs.test.ts +58 -0
- package/src/static/specs.ts +230 -0
- package/src/static/types.ts +176 -0
- package/src/styles/__tests__/testHelpers.ts +97 -0
- package/src/styles/base/_custom-elements.scss +51 -0
- package/src/styles/base/_index.scss +4 -0
- package/src/styles/components/__tests__/componentSelectors.test.ts +2575 -0
- package/src/styles/components/_alert.scss +82 -39
- package/src/styles/components/_avatar.scss +102 -47
- package/src/styles/components/_breadcrumbs.scss +39 -37
- package/src/styles/components/_button.scss +58 -5
- package/src/styles/components/_card.scss +64 -2
- package/src/styles/components/_checkbox.scss +35 -5
- package/src/styles/components/_color-picker.scss +48 -13
- package/src/styles/components/_divider.scss +86 -52
- package/src/styles/components/_dropdown.scss +214 -0
- package/src/styles/components/_field.scss +76 -23
- package/src/styles/components/_group.scss +190 -79
- package/src/styles/components/_index.scss +1 -0
- package/src/styles/components/_input.scss +81 -5
- package/src/styles/components/_menu.scss +1 -1
- package/src/styles/components/_navbar.scss +76 -45
- package/src/styles/components/_number-input.scss +88 -83
- package/src/styles/components/_page.scss +82 -23
- package/src/styles/components/_pagination.scss +240 -212
- package/src/styles/components/_panel.scss +268 -122
- package/src/styles/components/_progress.scss +120 -70
- package/src/styles/components/_radio.scss +35 -5
- package/src/styles/components/_scroll-area.scss +50 -22
- package/src/styles/components/_select.scss +40 -9
- package/src/styles/components/_sidebar.scss +59 -34
- package/src/styles/components/_skeleton.scss +111 -65
- package/src/styles/components/_slider.scss +34 -10
- package/src/styles/components/_spinner.scss +107 -56
- package/src/styles/components/_switch.scss +36 -5
- package/src/styles/components/_table.scss +150 -166
- package/src/styles/components/_tag.scss +244 -154
- package/src/styles/components/_tags-input.scss +46 -12
- package/src/styles/components/_textarea.scss +36 -5
- package/src/styles/components/_toolbar.scss +85 -31
- package/src/styles/components/_tooltip.scss +172 -3
- package/src/styles/mixins/_cut-border.scss +18 -4
- package/src/styles/mixins/_dual-selector.scss +192 -0
- package/src/styles/mixins/_index.scss +1 -0
- package/src/styles/mixins/dualSelector.test.ts +151 -0
- package/src/styles/themes/_colorful.scss +25 -0
- package/src/styles/themes/_greyscale.scss +25 -0
- package/src/styles/themes/_shade-scale.scss +39 -0
- package/src/styles/tokens/_semantic-color-kinds.scss +66 -0
- package/src/{types.ts → types/index.ts} +19 -11
- package/web-types.json +970 -137
- package/dist/composables/useCustomColors.test.d.ts +0 -1
- package/dist/composables/useFocusTrap.test.d.ts +0 -1
- package/dist/composables/usePortalContext.test.d.ts +0 -1
- package/dist/styles/mixins/fluidSize.test.d.ts +0 -1
- package/dist/types.d.ts +0 -29
|
@@ -21985,88 +21985,86 @@ Defaulting to \`null\`.`);
|
|
|
21985
21985
|
//#endregion
|
|
21986
21986
|
//#region src/composables/useCustomColors.ts
|
|
21987
21987
|
/**
|
|
21988
|
+
* Kind names that the color props accept as shortcuts. Typing `baseColor="neon-pink"` resolves
|
|
21989
|
+
* to `var(--sk-neon-pink-base)`; typing `borderColor="primary"` resolves to `var(--sk-primary-base)`.
|
|
21990
|
+
* Any string not in this set is passed through verbatim as a CSS color value.
|
|
21991
|
+
*/
|
|
21992
|
+
var KIND_NAMES = new Set([
|
|
21993
|
+
"neutral",
|
|
21994
|
+
"primary",
|
|
21995
|
+
"accent",
|
|
21996
|
+
"info",
|
|
21997
|
+
"success",
|
|
21998
|
+
"warning",
|
|
21999
|
+
"danger",
|
|
22000
|
+
"boulder",
|
|
22001
|
+
"neon-blue",
|
|
22002
|
+
"light-blue",
|
|
22003
|
+
"neon-orange",
|
|
22004
|
+
"neon-purple",
|
|
22005
|
+
"neon-green",
|
|
22006
|
+
"neon-mint",
|
|
22007
|
+
"neon-pink",
|
|
22008
|
+
"yellow",
|
|
22009
|
+
"red"
|
|
22010
|
+
]);
|
|
22011
|
+
function resolveColor(value, part) {
|
|
22012
|
+
if (!value) return;
|
|
22013
|
+
const trimmed = value.trim();
|
|
22014
|
+
if (KIND_NAMES.has(trimmed)) return `var(--sk-${trimmed}-${part})`;
|
|
22015
|
+
return value;
|
|
22016
|
+
}
|
|
22017
|
+
function unwrap(input) {
|
|
22018
|
+
return typeof input === "string" ? input : input?.value;
|
|
22019
|
+
}
|
|
22020
|
+
/**
|
|
21988
22021
|
* Composable for handling custom color props in components.
|
|
21989
22022
|
*
|
|
21990
|
-
*
|
|
21991
|
-
*
|
|
21992
|
-
*
|
|
22023
|
+
* Generates CSS custom properties that override a component's default color tokens. Props accept
|
|
22024
|
+
* either a kind name (e.g. `"neon-pink"`, `"primary"`), which resolves to the matching
|
|
22025
|
+
* `--sk-<kind>-base/-text` token, or any raw CSS color value (hex, rgb, oklch, named, or
|
|
22026
|
+
* `var(...)`), which is passed through unchanged. This lets consumers use SleekSpace's palette
|
|
22027
|
+
* by name without having to remember the token syntax.
|
|
21993
22028
|
*
|
|
21994
22029
|
* Works with any component that follows the CSS variable naming convention:
|
|
21995
22030
|
* - `--sk-{componentName}-color-base` for the base/background color
|
|
21996
22031
|
* - `--sk-{componentName}-fg` for the foreground/text color
|
|
22032
|
+
* - `--sk-{componentName}-border-base` / `--sk-{componentName}-border-color` for the border (optional)
|
|
21997
22033
|
*
|
|
21998
|
-
* @param componentName - The component name used in CSS variable naming
|
|
21999
|
-
*
|
|
22000
|
-
* @param
|
|
22001
|
-
*
|
|
22034
|
+
* @param componentName - The component name used in CSS variable naming (e.g., 'button', 'panel')
|
|
22035
|
+
* @param baseColor - Kind name or CSS color value for the base/background color
|
|
22036
|
+
* @param textColor - Kind name or CSS color value for the foreground/text color. Falls back to
|
|
22037
|
+
* `--sk-neutral-text` when only `baseColor` is provided.
|
|
22038
|
+
* @param borderColor - Optional kind name or CSS color value for the border. When provided,
|
|
22039
|
+
* both `--sk-<component>-border-base` and `--sk-<component>-border-color`
|
|
22040
|
+
* are emitted so the border takes precedence over any kind's default.
|
|
22002
22041
|
*
|
|
22003
22042
|
* @returns Computed style object with CSS variables ready to bind to a component's style attribute
|
|
22004
22043
|
*
|
|
22005
|
-
* @example
|
|
22044
|
+
* @example Kind name shortcut
|
|
22006
22045
|
* ```vue
|
|
22007
|
-
* <
|
|
22008
|
-
* import { useCustomColors } from '@/composables/useCustomColors';
|
|
22009
|
-
*
|
|
22010
|
-
* const props = defineProps<{ baseColor?: string }>();
|
|
22011
|
-
* const customColors = useCustomColors('button', toRef(() => props.baseColor), undefined);
|
|
22012
|
-
* <\/script>
|
|
22013
|
-
*
|
|
22014
|
-
* <template>
|
|
22015
|
-
* <button :style="customColors">Click me</button>
|
|
22016
|
-
* </template>
|
|
22046
|
+
* <SkPanel base-color="neon-pink" text-color="primary" border-color="neon-purple">...</SkPanel>
|
|
22017
22047
|
* ```
|
|
22018
22048
|
*
|
|
22019
|
-
* @example
|
|
22049
|
+
* @example Raw CSS values
|
|
22020
22050
|
* ```vue
|
|
22021
|
-
* <SkButton base-color="oklch(0.7 0.25 300)" text-color="white">
|
|
22022
|
-
* Custom Purple Button
|
|
22023
|
-
* </SkButton>
|
|
22051
|
+
* <SkButton base-color="oklch(0.7 0.25 300)" text-color="white">Click me</SkButton>
|
|
22024
22052
|
* ```
|
|
22025
|
-
*
|
|
22026
|
-
* @example Using CSS variables
|
|
22027
|
-
* ```vue
|
|
22028
|
-
* <SkPanel base-color="var(--my-custom-color)" text-color="var(--my-text-color)">
|
|
22029
|
-
* Content
|
|
22030
|
-
* </SkPanel>
|
|
22031
|
-
* ```
|
|
22032
|
-
*
|
|
22033
|
-
* @example Custom component
|
|
22034
|
-
* ```vue
|
|
22035
|
-
* <script setup>
|
|
22036
|
-
* import { useCustomColors } from '@/composables/useCustomColors';
|
|
22037
|
-
*
|
|
22038
|
-
* const props = defineProps<{ baseColor?: string; textColor?: string }>();
|
|
22039
|
-
* const customColors = useCustomColors('my-widget', toRef(() => props.baseColor), toRef(() => props.textColor));
|
|
22040
|
-
* <\/script>
|
|
22041
|
-
*
|
|
22042
|
-
* <template>
|
|
22043
|
-
* <div class="my-widget" :style="customColors">
|
|
22044
|
-
* <!-- Will generate: --sk-my-widget-color-base and --sk-my-widget-fg -->
|
|
22045
|
-
* </div>
|
|
22046
|
-
* </template>
|
|
22047
|
-
* ```
|
|
22048
|
-
*
|
|
22049
|
-
* Generated CSS variables:
|
|
22050
|
-
* - `--sk-{componentName}-color-base` - The base color for backgrounds and accents
|
|
22051
|
-
* - `--sk-{componentName}-fg` - The foreground/text color
|
|
22052
|
-
*
|
|
22053
|
-
* @remarks
|
|
22054
|
-
* - If `textColor` is not provided, components will use `--sk-neutral-text` from the active theme
|
|
22055
|
-
* - For best contrast, always provide `textColor` when using custom `baseColor`
|
|
22056
|
-
* - The generated CSS variables integrate with the component's existing token system
|
|
22057
|
-
* - Works with any component name - no need to register components beforehand
|
|
22058
22053
|
*/
|
|
22059
|
-
function useCustomColors(componentName, baseColor, textColor) {
|
|
22054
|
+
function useCustomColors(componentName, baseColor, textColor, borderColor) {
|
|
22060
22055
|
return (0, vue.computed)(() => {
|
|
22061
22056
|
const styles = {};
|
|
22062
|
-
const
|
|
22063
|
-
const
|
|
22064
|
-
|
|
22065
|
-
|
|
22066
|
-
|
|
22067
|
-
|
|
22068
|
-
if (
|
|
22069
|
-
|
|
22057
|
+
const baseResolved = resolveColor(unwrap(baseColor), "base");
|
|
22058
|
+
const textResolved = resolveColor(unwrap(textColor), "text");
|
|
22059
|
+
const borderResolved = resolveColor(unwrap(borderColor), "base");
|
|
22060
|
+
if (baseResolved) {
|
|
22061
|
+
styles[`--sk-${componentName}-color-base`] = baseResolved;
|
|
22062
|
+
styles[`--sk-${componentName}-fg`] = textResolved ?? "var(--sk-neutral-text)";
|
|
22063
|
+
} else if (textResolved) styles[`--sk-${componentName}-fg`] = textResolved;
|
|
22064
|
+
if (borderResolved) {
|
|
22065
|
+
styles[`--sk-${componentName}-border-base`] = borderResolved;
|
|
22066
|
+
styles[`--sk-${componentName}-border-color`] = borderResolved;
|
|
22067
|
+
}
|
|
22070
22068
|
return styles;
|
|
22071
22069
|
});
|
|
22072
22070
|
}
|
|
@@ -22087,7 +22085,8 @@ Defaulting to \`null\`.`);
|
|
|
22087
22085
|
default: false
|
|
22088
22086
|
},
|
|
22089
22087
|
baseColor: {},
|
|
22090
|
-
textColor: {}
|
|
22088
|
+
textColor: {},
|
|
22089
|
+
borderColor: {}
|
|
22091
22090
|
},
|
|
22092
22091
|
emits: ["update:modelValue"],
|
|
22093
22092
|
setup(__props, { emit: __emit }) {
|
|
@@ -22294,7 +22293,8 @@ Defaulting to \`null\`.`);
|
|
|
22294
22293
|
default: void 0
|
|
22295
22294
|
},
|
|
22296
22295
|
baseColor: {},
|
|
22297
|
-
textColor: {}
|
|
22296
|
+
textColor: {},
|
|
22297
|
+
borderColor: {}
|
|
22298
22298
|
},
|
|
22299
22299
|
setup(__props) {
|
|
22300
22300
|
/**
|
|
@@ -22859,7 +22859,8 @@ Defaulting to \`null\`.`);
|
|
|
22859
22859
|
kind: { default: "neutral" },
|
|
22860
22860
|
separator: { default: "/" },
|
|
22861
22861
|
baseColor: { default: void 0 },
|
|
22862
|
-
textColor: { default: void 0 }
|
|
22862
|
+
textColor: { default: void 0 },
|
|
22863
|
+
borderColor: {}
|
|
22863
22864
|
},
|
|
22864
22865
|
setup(__props) {
|
|
22865
22866
|
/**
|
|
@@ -22957,7 +22958,8 @@ Defaulting to \`null\`.`);
|
|
|
22957
22958
|
href: { default: void 0 },
|
|
22958
22959
|
to: { default: void 0 },
|
|
22959
22960
|
baseColor: {},
|
|
22960
|
-
textColor: {}
|
|
22961
|
+
textColor: {},
|
|
22962
|
+
borderColor: {}
|
|
22961
22963
|
},
|
|
22962
22964
|
setup(__props) {
|
|
22963
22965
|
/**
|
|
@@ -23052,10 +23054,11 @@ Defaulting to \`null\`.`);
|
|
|
23052
23054
|
corners: { default: () => ["bottom-right"] },
|
|
23053
23055
|
decorationCorner: { default: "bottom-right" },
|
|
23054
23056
|
baseColor: {},
|
|
23055
|
-
textColor: {}
|
|
23057
|
+
textColor: {},
|
|
23058
|
+
borderColor: {}
|
|
23056
23059
|
},
|
|
23057
23060
|
setup(__props) {
|
|
23058
|
-
(0, vue.useCssVars)((_ctx) => ({ "
|
|
23061
|
+
(0, vue.useCssVars)((_ctx) => ({ "a6c4a7d4": decorationDisplay.value }));
|
|
23059
23062
|
/**
|
|
23060
23063
|
* @component SkPanel
|
|
23061
23064
|
* @description A foundational container component with beveled corners, borders, background colors, and an optional
|
|
@@ -23085,7 +23088,7 @@ Defaulting to \`null\`.`);
|
|
|
23085
23088
|
[`sk-decoration-${props.decorationCorner}`]: true
|
|
23086
23089
|
};
|
|
23087
23090
|
});
|
|
23088
|
-
const customColorStyles = useCustomColors("panel", (0, vue.toRef)(() => props.baseColor), (0, vue.toRef)(() => props.textColor));
|
|
23091
|
+
const customColorStyles = useCustomColors("panel", (0, vue.toRef)(() => props.baseColor), (0, vue.toRef)(() => props.textColor), (0, vue.toRef)(() => props.borderColor));
|
|
23089
23092
|
const decorationDisplay = (0, vue.computed)(() => {
|
|
23090
23093
|
if (props.noBorder || !props.showDecoration) return "none";
|
|
23091
23094
|
if (!props.corners.includes(props.decorationCorner)) return "none";
|
|
@@ -23098,7 +23101,7 @@ Defaulting to \`null\`.`);
|
|
|
23098
23101
|
}, [(0, vue.renderSlot)(_ctx.$slots, "default", {}, void 0, true)], 6);
|
|
23099
23102
|
};
|
|
23100
23103
|
}
|
|
23101
|
-
}), [["__scopeId", "data-v-
|
|
23104
|
+
}), [["__scopeId", "data-v-3d4b2da6"]]);
|
|
23102
23105
|
//#endregion
|
|
23103
23106
|
//#region src/components/Card/SkCard.vue?vue&type=script&setup=true&lang.ts
|
|
23104
23107
|
var _hoisted_1$33 = {
|
|
@@ -23141,7 +23144,8 @@ Defaulting to \`null\`.`);
|
|
|
23141
23144
|
corners: { default: () => ["bottom-right"] },
|
|
23142
23145
|
decorationCorner: { default: "bottom-right" },
|
|
23143
23146
|
baseColor: {},
|
|
23144
|
-
textColor: {}
|
|
23147
|
+
textColor: {},
|
|
23148
|
+
borderColor: {}
|
|
23145
23149
|
},
|
|
23146
23150
|
setup(__props) {
|
|
23147
23151
|
/**
|
|
@@ -23200,6 +23204,7 @@ Defaulting to \`null\`.`);
|
|
|
23200
23204
|
"no-border": __props.noBorder,
|
|
23201
23205
|
"base-color": __props.baseColor,
|
|
23202
23206
|
"text-color": __props.textColor,
|
|
23207
|
+
"border-color": __props.borderColor,
|
|
23203
23208
|
corners: __props.corners,
|
|
23204
23209
|
"decoration-corner": __props.decorationCorner,
|
|
23205
23210
|
class: (0, vue.normalizeClass)(classes.value)
|
|
@@ -23225,6 +23230,7 @@ Defaulting to \`null\`.`);
|
|
|
23225
23230
|
"no-border",
|
|
23226
23231
|
"base-color",
|
|
23227
23232
|
"text-color",
|
|
23233
|
+
"border-color",
|
|
23228
23234
|
"corners",
|
|
23229
23235
|
"decoration-corner",
|
|
23230
23236
|
"class"
|
|
@@ -23277,7 +23283,8 @@ Defaulting to \`null\`.`);
|
|
|
23277
23283
|
name: { default: void 0 },
|
|
23278
23284
|
label: { default: void 0 },
|
|
23279
23285
|
baseColor: {},
|
|
23280
|
-
textColor: {}
|
|
23286
|
+
textColor: {},
|
|
23287
|
+
borderColor: {}
|
|
23281
23288
|
}, {
|
|
23282
23289
|
"modelValue": {
|
|
23283
23290
|
type: [Boolean, String],
|
|
@@ -23373,7 +23380,8 @@ Defaulting to \`null\`.`);
|
|
|
23373
23380
|
kind: { default: "neutral" },
|
|
23374
23381
|
triggerText: { default: "Toggle" },
|
|
23375
23382
|
baseColor: {},
|
|
23376
|
-
textColor: {}
|
|
23383
|
+
textColor: {},
|
|
23384
|
+
borderColor: {}
|
|
23377
23385
|
},
|
|
23378
23386
|
emits: ["update:open"],
|
|
23379
23387
|
setup(__props, { emit: __emit }) {
|
|
@@ -26566,7 +26574,8 @@ Defaulting to \`null\`.`);
|
|
|
26566
26574
|
placeholder: { default: "Pick a color" },
|
|
26567
26575
|
defaultValue: { default: "#B63DDAFF" },
|
|
26568
26576
|
baseColor: {},
|
|
26569
|
-
textColor: {}
|
|
26577
|
+
textColor: {},
|
|
26578
|
+
borderColor: {}
|
|
26570
26579
|
}, {
|
|
26571
26580
|
"modelValue": {},
|
|
26572
26581
|
"modelModifiers": {}
|
|
@@ -26690,7 +26699,8 @@ Defaulting to \`null\`.`);
|
|
|
26690
26699
|
props: {
|
|
26691
26700
|
kind: { default: "neutral" },
|
|
26692
26701
|
baseColor: {},
|
|
26693
|
-
textColor: {}
|
|
26702
|
+
textColor: {},
|
|
26703
|
+
borderColor: {}
|
|
26694
26704
|
},
|
|
26695
26705
|
setup(__props) {
|
|
26696
26706
|
const props = __props;
|
|
@@ -26987,6 +26997,10 @@ Defaulting to \`null\`.`);
|
|
|
26987
26997
|
}
|
|
26988
26998
|
});
|
|
26989
26999
|
//#endregion
|
|
27000
|
+
//#region src/components/NavBar/context.ts
|
|
27001
|
+
var NAVBAR_KIND_KEY = Symbol("sk-navbar-kind");
|
|
27002
|
+
var NAVBAR_SIZE_KEY = Symbol("sk-navbar-size");
|
|
27003
|
+
//#endregion
|
|
26990
27004
|
//#region src/components/Dropdown/SkDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
26991
27005
|
var _hoisted_1$27 = {
|
|
26992
27006
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -27012,8 +27026,10 @@ Defaulting to \`null\`.`);
|
|
|
27012
27026
|
side: { default: "bottom" },
|
|
27013
27027
|
align: { default: "start" },
|
|
27014
27028
|
sideOffset: { default: 4 },
|
|
27029
|
+
size: { default: void 0 },
|
|
27015
27030
|
baseColor: {},
|
|
27016
|
-
textColor: {}
|
|
27031
|
+
textColor: {},
|
|
27032
|
+
borderColor: {}
|
|
27017
27033
|
},
|
|
27018
27034
|
setup(__props) {
|
|
27019
27035
|
/**
|
|
@@ -27040,6 +27056,8 @@ Defaulting to \`null\`.`);
|
|
|
27040
27056
|
*/
|
|
27041
27057
|
const props = __props;
|
|
27042
27058
|
const { theme } = usePortalContext();
|
|
27059
|
+
const navbarSize = (0, vue.inject)(NAVBAR_SIZE_KEY, void 0);
|
|
27060
|
+
const effectiveSize = (0, vue.computed)(() => props.size ?? navbarSize?.value ?? "md");
|
|
27043
27061
|
(0, vue.provide)("dropdown-kind", (0, vue.computed)(() => props.kind));
|
|
27044
27062
|
const caretPoints = (0, vue.computed)(() => {
|
|
27045
27063
|
switch (props.side) {
|
|
@@ -27057,11 +27075,14 @@ Defaulting to \`null\`.`);
|
|
|
27057
27075
|
return (_ctx, _cache) => {
|
|
27058
27076
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(DropdownMenuRoot_default), null, {
|
|
27059
27077
|
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(DropdownMenuTrigger_default), { "as-child": "" }, {
|
|
27060
|
-
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "trigger", {}, () => [(0, vue.createVNode)(SkButton_default, {
|
|
27078
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "trigger", {}, () => [(0, vue.createVNode)(SkButton_default, {
|
|
27079
|
+
kind: __props.kind,
|
|
27080
|
+
size: effectiveSize.value
|
|
27081
|
+
}, {
|
|
27061
27082
|
trailing: (0, vue.withCtx)(() => [((0, vue.openBlock)(), (0, vue.createElementBlock)("svg", _hoisted_1$27, [(0, vue.createElementVNode)("polyline", { points: caretPoints.value }, null, 8, _hoisted_2$14)]))]),
|
|
27062
27083
|
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.triggerText) + " ", 1)]),
|
|
27063
27084
|
_: 1
|
|
27064
|
-
}, 8, ["kind"])], true)]),
|
|
27085
|
+
}, 8, ["kind", "size"])], true)]),
|
|
27065
27086
|
_: 3
|
|
27066
27087
|
}), (0, vue.createVNode)((0, vue.unref)(DropdownMenuPortal_default), null, {
|
|
27067
27088
|
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(DropdownMenuContent_default), {
|
|
@@ -27088,7 +27109,7 @@ Defaulting to \`null\`.`);
|
|
|
27088
27109
|
});
|
|
27089
27110
|
};
|
|
27090
27111
|
}
|
|
27091
|
-
}), [["__scopeId", "data-v-
|
|
27112
|
+
}), [["__scopeId", "data-v-88c7a661"]]);
|
|
27092
27113
|
//#endregion
|
|
27093
27114
|
//#region src/components/Dropdown/SkDropdownCheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
27094
27115
|
var _hoisted_1$26 = {
|
|
@@ -27526,7 +27547,8 @@ Defaulting to \`null\`.`);
|
|
|
27526
27547
|
name: { default: void 0 },
|
|
27527
27548
|
autocomplete: { default: void 0 },
|
|
27528
27549
|
baseColor: {},
|
|
27529
|
-
textColor: {}
|
|
27550
|
+
textColor: {},
|
|
27551
|
+
borderColor: {}
|
|
27530
27552
|
}, {
|
|
27531
27553
|
"modelValue": { default: "" },
|
|
27532
27554
|
"modelModifiers": {}
|
|
@@ -27608,7 +27630,8 @@ Defaulting to \`null\`.`);
|
|
|
27608
27630
|
default: false
|
|
27609
27631
|
},
|
|
27610
27632
|
baseColor: {},
|
|
27611
|
-
textColor: {}
|
|
27633
|
+
textColor: {},
|
|
27634
|
+
borderColor: {}
|
|
27612
27635
|
}, {
|
|
27613
27636
|
"modelValue": {},
|
|
27614
27637
|
"modelModifiers": {}
|
|
@@ -27839,7 +27862,8 @@ Defaulting to \`null\`.`);
|
|
|
27839
27862
|
default: false
|
|
27840
27863
|
},
|
|
27841
27864
|
baseColor: {},
|
|
27842
|
-
textColor: {}
|
|
27865
|
+
textColor: {},
|
|
27866
|
+
borderColor: {}
|
|
27843
27867
|
},
|
|
27844
27868
|
emits: ["update:open"],
|
|
27845
27869
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -27976,9 +28000,6 @@ Defaulting to \`null\`.`);
|
|
|
27976
28000
|
}
|
|
27977
28001
|
}), [["__scopeId", "data-v-d5c13c78"]]);
|
|
27978
28002
|
//#endregion
|
|
27979
|
-
//#region src/components/NavBar/context.ts
|
|
27980
|
-
var NAVBAR_KIND_KEY = Symbol("sk-navbar-kind");
|
|
27981
|
-
//#endregion
|
|
27982
28003
|
//#region src/components/NavBar/SkNavBar.vue?vue&type=script&setup=true&lang.ts
|
|
27983
28004
|
var _hoisted_1$20 = { class: "sk-navbar-content" };
|
|
27984
28005
|
var _hoisted_2$11 = {
|
|
@@ -28007,8 +28028,10 @@ Defaulting to \`null\`.`);
|
|
|
28007
28028
|
type: Boolean,
|
|
28008
28029
|
default: true
|
|
28009
28030
|
},
|
|
28031
|
+
size: { default: "md" },
|
|
28010
28032
|
baseColor: {},
|
|
28011
|
-
textColor: {}
|
|
28033
|
+
textColor: {},
|
|
28034
|
+
borderColor: {}
|
|
28012
28035
|
},
|
|
28013
28036
|
setup(__props) {
|
|
28014
28037
|
/**
|
|
@@ -28043,6 +28066,7 @@ Defaulting to \`null\`.`);
|
|
|
28043
28066
|
*/
|
|
28044
28067
|
const props = __props;
|
|
28045
28068
|
(0, vue.provide)(NAVBAR_KIND_KEY, (0, vue.toRef)(() => props.kind));
|
|
28069
|
+
(0, vue.provide)(NAVBAR_SIZE_KEY, (0, vue.toRef)(() => props.size));
|
|
28046
28070
|
const slots = (0, vue.useSlots)();
|
|
28047
28071
|
const classes = (0, vue.computed)(() => {
|
|
28048
28072
|
return {
|
|
@@ -28093,7 +28117,8 @@ Defaulting to \`null\`.`);
|
|
|
28093
28117
|
max: { default: void 0 },
|
|
28094
28118
|
step: { default: 1 },
|
|
28095
28119
|
baseColor: {},
|
|
28096
|
-
textColor: {}
|
|
28120
|
+
textColor: {},
|
|
28121
|
+
borderColor: {}
|
|
28097
28122
|
}, {
|
|
28098
28123
|
"modelValue": { default: 0 },
|
|
28099
28124
|
"modelModifiers": {}
|
|
@@ -28494,6 +28519,10 @@ Defaulting to \`null\`.`);
|
|
|
28494
28519
|
flush: {
|
|
28495
28520
|
type: Boolean,
|
|
28496
28521
|
default: false
|
|
28522
|
+
},
|
|
28523
|
+
noBounce: {
|
|
28524
|
+
type: Boolean,
|
|
28525
|
+
default: false
|
|
28497
28526
|
}
|
|
28498
28527
|
},
|
|
28499
28528
|
emits: ["update:sidebarOpen", "update:asideOpen"],
|
|
@@ -28674,7 +28703,8 @@ Defaulting to \`null\`.`);
|
|
|
28674
28703
|
"sk-fixed-footer": props.fixedFooter,
|
|
28675
28704
|
"sk-sidebar-drawer-active": isSidebarDrawerActive.value,
|
|
28676
28705
|
"sk-aside-drawer-active": isAsideDrawerActive.value,
|
|
28677
|
-
"sk-flush": props.flush
|
|
28706
|
+
"sk-flush": props.flush,
|
|
28707
|
+
"sk-no-bounce": props.noBounce
|
|
28678
28708
|
}));
|
|
28679
28709
|
const customStyles = (0, vue.computed)(() => {
|
|
28680
28710
|
const styles = {};
|
|
@@ -28772,7 +28802,7 @@ Defaulting to \`null\`.`);
|
|
|
28772
28802
|
], 14, _hoisted_1$18);
|
|
28773
28803
|
};
|
|
28774
28804
|
}
|
|
28775
|
-
}), [["__scopeId", "data-v-
|
|
28805
|
+
}), [["__scopeId", "data-v-265ba522"]]);
|
|
28776
28806
|
//#endregion
|
|
28777
28807
|
//#region src/components/Page/SkPageSidebarToggle.vue?vue&type=script&setup=true&lang.ts
|
|
28778
28808
|
var _hoisted_1$17 = {
|
|
@@ -28998,7 +29028,8 @@ Defaulting to \`null\`.`);
|
|
|
28998
29028
|
default: false
|
|
28999
29029
|
},
|
|
29000
29030
|
baseColor: { default: void 0 },
|
|
29001
|
-
textColor: { default: void 0 }
|
|
29031
|
+
textColor: { default: void 0 },
|
|
29032
|
+
borderColor: {}
|
|
29002
29033
|
},
|
|
29003
29034
|
emits: ["update:modelValue"],
|
|
29004
29035
|
setup(__props, { emit: __emit }) {
|
|
@@ -29150,7 +29181,8 @@ Defaulting to \`null\`.`);
|
|
|
29150
29181
|
default: void 0
|
|
29151
29182
|
},
|
|
29152
29183
|
baseColor: {},
|
|
29153
|
-
textColor: {}
|
|
29184
|
+
textColor: {},
|
|
29185
|
+
borderColor: {}
|
|
29154
29186
|
},
|
|
29155
29187
|
emits: ["update:open"],
|
|
29156
29188
|
setup(__props, { emit: __emit }) {
|
|
@@ -29394,7 +29426,8 @@ Defaulting to \`null\`.`);
|
|
|
29394
29426
|
kind: { default: void 0 },
|
|
29395
29427
|
size: { default: void 0 },
|
|
29396
29428
|
baseColor: {},
|
|
29397
|
-
textColor: {}
|
|
29429
|
+
textColor: {},
|
|
29430
|
+
borderColor: {}
|
|
29398
29431
|
},
|
|
29399
29432
|
setup(__props) {
|
|
29400
29433
|
/**
|
|
@@ -29553,17 +29586,69 @@ Defaulting to \`null\`.`);
|
|
|
29553
29586
|
[`sk-${props.orientation}`]: true,
|
|
29554
29587
|
"sk-fade": props.fade
|
|
29555
29588
|
}));
|
|
29589
|
+
const viewportRef = (0, vue.ref)(null);
|
|
29590
|
+
const fadeTop = (0, vue.ref)(0);
|
|
29591
|
+
const fadeBottom = (0, vue.ref)(0);
|
|
29592
|
+
const fadeLeft = (0, vue.ref)(0);
|
|
29593
|
+
const fadeRight = (0, vue.ref)(0);
|
|
29594
|
+
let scrollEl = null;
|
|
29595
|
+
let resizeObs = null;
|
|
29596
|
+
let rafID = null;
|
|
29597
|
+
function updateFades() {
|
|
29598
|
+
if (!scrollEl) return;
|
|
29599
|
+
const { scrollTop, scrollLeft, scrollHeight, scrollWidth, clientHeight, clientWidth } = scrollEl;
|
|
29600
|
+
const threshold = 1;
|
|
29601
|
+
fadeTop.value = scrollTop > threshold ? 1 : 0;
|
|
29602
|
+
fadeBottom.value = scrollHeight - scrollTop - clientHeight > threshold ? 1 : 0;
|
|
29603
|
+
fadeLeft.value = scrollLeft > threshold ? 1 : 0;
|
|
29604
|
+
fadeRight.value = scrollWidth - scrollLeft - clientWidth > threshold ? 1 : 0;
|
|
29605
|
+
}
|
|
29606
|
+
function scheduleUpdate() {
|
|
29607
|
+
if (rafID !== null) return;
|
|
29608
|
+
rafID = requestAnimationFrame(() => {
|
|
29609
|
+
rafID = null;
|
|
29610
|
+
updateFades();
|
|
29611
|
+
});
|
|
29612
|
+
}
|
|
29613
|
+
(0, vue.onMounted)(() => {
|
|
29614
|
+
scrollEl = viewportRef.value?.viewportElement ?? null;
|
|
29615
|
+
if (!scrollEl) return;
|
|
29616
|
+
scrollEl.addEventListener("scroll", scheduleUpdate, { passive: true });
|
|
29617
|
+
resizeObs = new ResizeObserver(scheduleUpdate);
|
|
29618
|
+
resizeObs.observe(scrollEl);
|
|
29619
|
+
for (const child of Array.from(scrollEl.children)) resizeObs.observe(child);
|
|
29620
|
+
updateFades();
|
|
29621
|
+
});
|
|
29622
|
+
(0, vue.onBeforeUnmount)(() => {
|
|
29623
|
+
if (scrollEl) scrollEl.removeEventListener("scroll", scheduleUpdate);
|
|
29624
|
+
resizeObs?.disconnect();
|
|
29625
|
+
if (rafID !== null) cancelAnimationFrame(rafID);
|
|
29626
|
+
});
|
|
29627
|
+
const rootStyles = (0, vue.computed)(() => {
|
|
29628
|
+
const styles = { ...customColorStyles.value };
|
|
29629
|
+
if (props.fade) {
|
|
29630
|
+
styles["--sk-scroll-fade-top"] = String(fadeTop.value);
|
|
29631
|
+
styles["--sk-scroll-fade-bottom"] = String(fadeBottom.value);
|
|
29632
|
+
styles["--sk-scroll-fade-left"] = String(fadeLeft.value);
|
|
29633
|
+
styles["--sk-scroll-fade-right"] = String(fadeRight.value);
|
|
29634
|
+
}
|
|
29635
|
+
return styles;
|
|
29636
|
+
});
|
|
29556
29637
|
return (_ctx, _cache) => {
|
|
29557
29638
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ScrollAreaRoot_default), {
|
|
29558
29639
|
type: __props.type,
|
|
29559
29640
|
class: (0, vue.normalizeClass)(classes.value),
|
|
29560
|
-
style: (0, vue.normalizeStyle)(
|
|
29641
|
+
style: (0, vue.normalizeStyle)(rootStyles.value)
|
|
29561
29642
|
}, {
|
|
29562
29643
|
default: (0, vue.withCtx)(() => [
|
|
29563
|
-
(0, vue.createVNode)((0, vue.unref)(ScrollAreaViewport_default), {
|
|
29644
|
+
(0, vue.createVNode)((0, vue.unref)(ScrollAreaViewport_default), {
|
|
29645
|
+
ref_key: "viewportRef",
|
|
29646
|
+
ref: viewportRef,
|
|
29647
|
+
class: "sk-scroll-area-viewport"
|
|
29648
|
+
}, {
|
|
29564
29649
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {}, void 0, true)]),
|
|
29565
29650
|
_: 3
|
|
29566
|
-
}),
|
|
29651
|
+
}, 512),
|
|
29567
29652
|
__props.orientation !== "horizontal" ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ScrollAreaScrollbar_default), {
|
|
29568
29653
|
key: 0,
|
|
29569
29654
|
class: "sk-scroll-area-scrollbar",
|
|
@@ -29593,7 +29678,7 @@ Defaulting to \`null\`.`);
|
|
|
29593
29678
|
]);
|
|
29594
29679
|
};
|
|
29595
29680
|
}
|
|
29596
|
-
}), [["__scopeId", "data-v-
|
|
29681
|
+
}), [["__scopeId", "data-v-e4dbafd6"]]);
|
|
29597
29682
|
//#endregion
|
|
29598
29683
|
//#region src/components/Select/SkSelect.vue?vue&type=script&setup=true&lang.ts
|
|
29599
29684
|
var _hoisted_1$13 = {
|
|
@@ -29623,7 +29708,8 @@ Defaulting to \`null\`.`);
|
|
|
29623
29708
|
default: false
|
|
29624
29709
|
},
|
|
29625
29710
|
baseColor: {},
|
|
29626
|
-
textColor: {}
|
|
29711
|
+
textColor: {},
|
|
29712
|
+
borderColor: {}
|
|
29627
29713
|
}, {
|
|
29628
29714
|
"modelValue": {},
|
|
29629
29715
|
"modelModifiers": {}
|
|
@@ -29848,7 +29934,8 @@ Defaulting to \`null\`.`);
|
|
|
29848
29934
|
default: false
|
|
29849
29935
|
},
|
|
29850
29936
|
baseColor: {},
|
|
29851
|
-
textColor: {}
|
|
29937
|
+
textColor: {},
|
|
29938
|
+
borderColor: {}
|
|
29852
29939
|
},
|
|
29853
29940
|
setup(__props) {
|
|
29854
29941
|
/**
|
|
@@ -30419,7 +30506,8 @@ Defaulting to \`null\`.`);
|
|
|
30419
30506
|
default: false
|
|
30420
30507
|
},
|
|
30421
30508
|
baseColor: {},
|
|
30422
|
-
textColor: {}
|
|
30509
|
+
textColor: {},
|
|
30510
|
+
borderColor: {}
|
|
30423
30511
|
},
|
|
30424
30512
|
emits: ["update:modelValue"],
|
|
30425
30513
|
setup(__props) {
|
|
@@ -30532,7 +30620,8 @@ Defaulting to \`null\`.`);
|
|
|
30532
30620
|
default: false
|
|
30533
30621
|
},
|
|
30534
30622
|
baseColor: {},
|
|
30535
|
-
textColor: {}
|
|
30623
|
+
textColor: {},
|
|
30624
|
+
borderColor: {}
|
|
30536
30625
|
},
|
|
30537
30626
|
setup(__props) {
|
|
30538
30627
|
/**
|
|
@@ -30799,7 +30888,8 @@ Defaulting to \`null\`.`);
|
|
|
30799
30888
|
default: false
|
|
30800
30889
|
},
|
|
30801
30890
|
baseColor: {},
|
|
30802
|
-
textColor: {}
|
|
30891
|
+
textColor: {},
|
|
30892
|
+
borderColor: {}
|
|
30803
30893
|
},
|
|
30804
30894
|
emits: ["update:modelValue"],
|
|
30805
30895
|
setup(__props) {
|
|
@@ -30874,7 +30964,8 @@ Defaulting to \`null\`.`);
|
|
|
30874
30964
|
default: false
|
|
30875
30965
|
},
|
|
30876
30966
|
baseColor: {},
|
|
30877
|
-
textColor: {}
|
|
30967
|
+
textColor: {},
|
|
30968
|
+
borderColor: {}
|
|
30878
30969
|
},
|
|
30879
30970
|
emits: ["remove"],
|
|
30880
30971
|
setup(__props, { emit: __emit }) {
|
|
@@ -30980,7 +31071,8 @@ Defaulting to \`null\`.`);
|
|
|
30980
31071
|
tagKind: { default: void 0 },
|
|
30981
31072
|
tagVariant: { default: "solid" },
|
|
30982
31073
|
baseColor: {},
|
|
30983
|
-
textColor: {}
|
|
31074
|
+
textColor: {},
|
|
31075
|
+
borderColor: {}
|
|
30984
31076
|
}, {
|
|
30985
31077
|
"modelValue": { default: () => [] },
|
|
30986
31078
|
"modelModifiers": {}
|
|
@@ -31123,7 +31215,8 @@ Defaulting to \`null\`.`);
|
|
|
31123
31215
|
rows: { default: 4 },
|
|
31124
31216
|
autocomplete: { default: void 0 },
|
|
31125
31217
|
baseColor: {},
|
|
31126
|
-
textColor: {}
|
|
31218
|
+
textColor: {},
|
|
31219
|
+
borderColor: {}
|
|
31127
31220
|
}, {
|
|
31128
31221
|
"modelValue": { default: "" },
|
|
31129
31222
|
"modelModifiers": {}
|
|
@@ -31680,7 +31773,8 @@ Defaulting to \`null\`.`);
|
|
|
31680
31773
|
default: true
|
|
31681
31774
|
},
|
|
31682
31775
|
baseColor: {},
|
|
31683
|
-
textColor: {}
|
|
31776
|
+
textColor: {},
|
|
31777
|
+
borderColor: {}
|
|
31684
31778
|
},
|
|
31685
31779
|
setup(__props) {
|
|
31686
31780
|
/**
|
|
@@ -31962,6 +32056,7 @@ Defaulting to \`null\`.`);
|
|
|
31962
32056
|
emits: ["update:modelValue"],
|
|
31963
32057
|
setup(__props) {
|
|
31964
32058
|
const props = __props;
|
|
32059
|
+
const rekaModelValue = (0, vue.computed)(() => props.modelValue);
|
|
31965
32060
|
function getAllKeys(items) {
|
|
31966
32061
|
const keys = [];
|
|
31967
32062
|
for (const item of items) {
|
|
@@ -31984,7 +32079,7 @@ Defaulting to \`null\`.`);
|
|
|
31984
32079
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(TreeRoot_default), {
|
|
31985
32080
|
items: __props.items,
|
|
31986
32081
|
"get-key": __props.getKey,
|
|
31987
|
-
"model-value":
|
|
32082
|
+
"model-value": rekaModelValue.value,
|
|
31988
32083
|
multiple: __props.multiple,
|
|
31989
32084
|
"propagate-select": __props.propagateSelect,
|
|
31990
32085
|
"default-expanded": expandedKeys.value,
|
|
@@ -32006,7 +32101,7 @@ Defaulting to \`null\`.`);
|
|
|
32006
32101
|
]);
|
|
32007
32102
|
};
|
|
32008
32103
|
}
|
|
32009
|
-
}), [["__scopeId", "data-v-
|
|
32104
|
+
}), [["__scopeId", "data-v-39b36ab8"]]);
|
|
32010
32105
|
//#endregion
|
|
32011
32106
|
//#region src/components/Theme/SkTheme.vue?vue&type=script&setup=true&lang.ts
|
|
32012
32107
|
var _hoisted_1 = ["data-scheme"];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ListFlagSpec {
|
|
2
|
+
prop: string;
|
|
3
|
+
family: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SingleChoiceFlagSpec {
|
|
6
|
+
prop: string;
|
|
7
|
+
family: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ClassSpec {
|
|
10
|
+
base: string;
|
|
11
|
+
kind?: boolean;
|
|
12
|
+
size?: boolean;
|
|
13
|
+
variant?: boolean;
|
|
14
|
+
booleanFlags?: readonly string[];
|
|
15
|
+
listFlags?: readonly ListFlagSpec[];
|
|
16
|
+
singleChoiceFlags?: readonly SingleChoiceFlagSpec[];
|
|
17
|
+
}
|
|
18
|
+
export declare function composeClasses(spec: ClassSpec, props: Record<string, unknown>): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AlertKind, StaticCustomColors } from '../types';
|
|
2
|
+
export interface AlertStaticProps extends StaticCustomColors {
|
|
3
|
+
kind?: AlertKind;
|
|
4
|
+
subtle?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Custom icon HTML string, or `false` to suppress the icon entirely.
|
|
7
|
+
* When omitted (default), a kind-appropriate SVG is shown for feedback kinds
|
|
8
|
+
* (info, success, warning, danger); non-feedback kinds show no icon.
|
|
9
|
+
*/
|
|
10
|
+
icon?: string | false;
|
|
11
|
+
}
|
|
12
|
+
export declare function alert(props?: AlertStaticProps, children?: string): string;
|