@cscfi/csc-ui 4.0.0-rc.6 → 4.0.0-rc.8
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/csc-ui.js +4375 -4237
- package/dist/custom-elements.json +142 -18
- package/dist/docs/c-accordion-item/usage.md +4 -0
- package/dist/docs/c-breadcrumb/usage.md +3 -2
- package/dist/docs/c-button/usage.md +14 -0
- package/dist/docs/c-file-upload/usage.md +6 -0
- package/dist/docs/c-icon/usage.md +5 -1
- package/dist/docs/c-icon-button/usage.md +4 -3
- package/dist/docs/c-menu-item/usage.md +3 -1
- package/dist/docs/c-progress-bar/usage.md +24 -5
- package/dist/docs/c-status/usage.md +69 -13
- package/dist/vscode.css-custom-data.json +16 -4
- package/dist/vscode.html-custom-data.json +31 -8
- package/dist/web-types.json +73 -18
- package/dist-types/components/c-accordion-item/CAccordionItem.vue.d.ts +3 -1
- package/dist-types/components/c-breadcrumb-item/CBreadcrumbItem.vue.d.ts +3 -1
- package/dist-types/components/c-button/CButton.vue.d.ts +4 -2
- package/dist-types/components/c-file-upload/CFileUpload.vue.d.ts +3 -3
- package/dist-types/components/c-file-upload/files.d.ts +12 -4
- package/dist-types/components/c-icon/CIcon.vue.d.ts +6 -1
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +1 -1
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +3 -1
- package/dist-types/components/c-progress-bar/CProgressBar.vue.d.ts +4 -4
- package/dist-types/components/c-status/CStatus.vue.d.ts +44 -1
- package/dist-types/index.d.ts +1 -1
- package/dist-types/shared/statusIcons.d.ts +4 -0
- package/dist-types/tag-name-map.d.ts +27 -6
- package/package.json +1 -1
|
@@ -996,7 +996,10 @@ export interface CIconElement extends Omit<HTMLElement, 'color' | 'path' | 'size
|
|
|
996
996
|
color?: string;
|
|
997
997
|
/** Svg `path` `d` attribute value. */
|
|
998
998
|
path: string;
|
|
999
|
-
/**
|
|
999
|
+
/**
|
|
1000
|
+
* Icon size in pixels. Unset, the icon takes the size of the icon slot it
|
|
1001
|
+
* sits in.
|
|
1002
|
+
*/
|
|
1000
1003
|
size?: number;
|
|
1001
1004
|
}
|
|
1002
1005
|
/** An icon-only button: a round native button that shows a single icon and takes its accessible name from an `aria-label` on the element. */
|
|
@@ -1624,11 +1627,11 @@ export interface CPopoverElement extends Omit<HTMLElement, 'distance' | 'heading
|
|
|
1624
1627
|
export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | 'indeterminate' | 'label' | 'singleLine' | 'value'> {
|
|
1625
1628
|
/**
|
|
1626
1629
|
* Hides the details line (the percentage and `label`); `label` still
|
|
1627
|
-
* names the bar.
|
|
1630
|
+
* names the progress bar.
|
|
1628
1631
|
*/
|
|
1629
1632
|
hideDetails?: boolean;
|
|
1630
1633
|
/**
|
|
1631
|
-
*
|
|
1634
|
+
* Turns the bar into a looping sweep for work of unknown duration,
|
|
1632
1635
|
* hiding the details line and exposing no value.
|
|
1633
1636
|
*/
|
|
1634
1637
|
indeterminate?: boolean;
|
|
@@ -1637,10 +1640,10 @@ export interface CProgressBarElement extends Omit<HTMLElement, 'hideDetails' | '
|
|
|
1637
1640
|
* accessible name.
|
|
1638
1641
|
*/
|
|
1639
1642
|
label?: string;
|
|
1640
|
-
/** Places the details line beside the
|
|
1643
|
+
/** Places the details line beside the progress track instead of below it. */
|
|
1641
1644
|
singleLine?: boolean;
|
|
1642
1645
|
/**
|
|
1643
|
-
* Completion percentage, 0 to 100. The
|
|
1646
|
+
* Completion percentage, 0 to 100. The bar clamps a value outside that
|
|
1644
1647
|
* range; the details line shows it as given, a negative one in the error
|
|
1645
1648
|
* colour.
|
|
1646
1649
|
*/
|
|
@@ -2004,7 +2007,23 @@ export interface CSpinnerElement extends Omit<HTMLElement, 'color' | 'size' | 't
|
|
|
2004
2007
|
width?: number;
|
|
2005
2008
|
}
|
|
2006
2009
|
/** A status pill: a short word naming the state of a record, such as Active, Pending or Failed, tinted with the colours of its status type. */
|
|
2007
|
-
export interface CStatusElement extends Omit<HTMLElement, 'type'> {
|
|
2010
|
+
export interface CStatusElement extends Omit<HTMLElement, 'appearance' | 'marker' | 'size' | 'type'> {
|
|
2011
|
+
/**
|
|
2012
|
+
* `filled` (unless set, or changed app-wide) paints the status tint;
|
|
2013
|
+
* `outlined` keeps the ground behind the pill and colours only the marker.
|
|
2014
|
+
*/
|
|
2015
|
+
appearance?: 'filled' | 'outlined';
|
|
2016
|
+
/**
|
|
2017
|
+
* The symbol before the text: `icon` (the status icon on a tinted halo),
|
|
2018
|
+
* `dot`, or `none` (unless set, or changed app-wide). A slotted icon
|
|
2019
|
+
* replaces it.
|
|
2020
|
+
*/
|
|
2021
|
+
marker?: 'dot' | 'icon' | 'none';
|
|
2022
|
+
/**
|
|
2023
|
+
* Size of the pill: `small`, `default` (unless set, or changed app-wide)
|
|
2024
|
+
* or `large`.
|
|
2025
|
+
*/
|
|
2026
|
+
size?: 'default' | 'large' | 'small';
|
|
2008
2027
|
/**
|
|
2009
2028
|
* The status family whose tint and ink paint the pill; without it the
|
|
2010
2029
|
* pill is neutral grey.
|
|
@@ -2755,6 +2774,7 @@ export interface CAppDefaults {
|
|
|
2755
2774
|
'c-number-field'?: Partial<Pick<CNumberFieldElement, 'decimalSeparator' | 'decimals' | 'fixedDecimals' | 'groupSeparator' | 'hideDetails' | 'hideMessage' | 'labelOnTop' | 'shadow' | 'size' | 'step' | 'texts'>>;
|
|
2756
2775
|
'c-pagination'?: Partial<Pick<CPaginationElement, 'texts'>>;
|
|
2757
2776
|
'c-select'?: Partial<Pick<CSelectElement, 'hideDetails' | 'hideMessage' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
2777
|
+
'c-status'?: Partial<Pick<CStatusElement, 'appearance' | 'marker' | 'size'>>;
|
|
2758
2778
|
'c-text-field'?: Partial<Pick<CTextFieldElement, 'hideDetails' | 'hideMessage' | 'labelOnTop' | 'shadow' | 'size'>>;
|
|
2759
2779
|
'c-time-picker'?: Partial<Pick<CTimePickerElement, 'format' | 'hideDetails' | 'hideMessage' | 'labelOnTop' | 'shadow' | 'showNow' | 'size' | 'texts'>>;
|
|
2760
2780
|
'c-tree-select'?: Partial<Pick<CTreeSelectElement, 'hideDetails' | 'hideMessage' | 'itemsPerPage' | 'labelOnTop' | 'shadow' | 'size' | 'texts'>>;
|
|
@@ -2773,6 +2793,7 @@ export declare const DEFAULTABLE_PROPS: {
|
|
|
2773
2793
|
readonly 'c-number-field': readonly ["decimalSeparator", "decimals", "fixedDecimals", "groupSeparator", "hideDetails", "hideMessage", "labelOnTop", "shadow", "size", "step", "texts"];
|
|
2774
2794
|
readonly 'c-pagination': readonly ["texts"];
|
|
2775
2795
|
readonly 'c-select': readonly ["hideDetails", "hideMessage", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
|
2796
|
+
readonly 'c-status': readonly ["appearance", "marker", "size"];
|
|
2776
2797
|
readonly 'c-text-field': readonly ["hideDetails", "hideMessage", "labelOnTop", "shadow", "size"];
|
|
2777
2798
|
readonly 'c-time-picker': readonly ["format", "hideDetails", "hideMessage", "labelOnTop", "shadow", "showNow", "size", "texts"];
|
|
2778
2799
|
readonly 'c-tree-select': readonly ["hideDetails", "hideMessage", "itemsPerPage", "labelOnTop", "shadow", "size", "texts"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cscfi/csc-ui",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.8",
|
|
4
4
|
"description": "The CSC Design System's components as native custom elements: one set of c-* tags for plain HTML, Vue, React and Angular.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/csc-ui.js",
|