@castlabs/ui 7.6.1 → 7.6.2
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/castlabs-ui-editor.common.js.map +1 -1
- package/dist/castlabs-ui-editor.css +1 -1
- package/dist/castlabs-ui-editor.umd.js +1 -1
- package/dist/castlabs-ui-editor.umd.js.map +1 -1
- package/dist/castlabs-ui.common.js +2 -2
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.core.js +3 -3
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.module.js +3 -3
- package/dist/castlabs-ui.umd.js +3 -3
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ClAlert/style.scss +1 -0
- package/src/components/ClBadge/style.scss +1 -0
- package/src/components/ClBadge/style.variables.scss +6 -11
- package/src/components/ClFooter/style.scss +1 -0
- package/src/components/ClPagination/style.scss +1 -1
- package/src/components/text/ClCopy/style.scss +2 -0
- package/src/components/text/ClLinkExternal/style.scss +1 -1
- package/src/styles/abstracts/color.scss +35 -1
- package/src/styles/abstracts/typography.scss +2 -1
- package/src/styles/layout/color.scss +1 -0
- package/src/styles/layout/grid.scss +1 -1
- package/src/styles/layout/helper.scss +4 -0
- package/types/index.d.ts +1 -0
package/dist/castlabs-ui.core.js
CHANGED
|
@@ -483,7 +483,7 @@ function clFormIsValid (id) {
|
|
|
483
483
|
const form = document.querySelector(`#${id}`)
|
|
484
484
|
if (!form) {
|
|
485
485
|
// not a form at all
|
|
486
|
-
console.error(
|
|
486
|
+
console.error('can’t find/validate form', id)
|
|
487
487
|
return false
|
|
488
488
|
}
|
|
489
489
|
|
|
@@ -518,7 +518,7 @@ async function clFormIsValidAsync (id) {
|
|
|
518
518
|
const form = document.getElementById(id)
|
|
519
519
|
if (!form) {
|
|
520
520
|
// not a form at all
|
|
521
|
-
console.error(
|
|
521
|
+
console.error('can’t find/validate form', id)
|
|
522
522
|
return Promise.resolve(false)
|
|
523
523
|
}
|
|
524
524
|
|
|
@@ -806,7 +806,7 @@ function _getProperty (object, property) {
|
|
|
806
806
|
* @return {Object[]} Sorted array.
|
|
807
807
|
*/
|
|
808
808
|
function clSort (original, property, order = 'ASC', caseSensitive = false) {
|
|
809
|
-
if (!original) return [] // can
|
|
809
|
+
if (!original) return [] // can’t sort null/undefined/...
|
|
810
810
|
const copy = typeof original === 'function' ? [...original()] : [...original]
|
|
811
811
|
|
|
812
812
|
const cmp = (a, b) => a.localeCompare(b, undefined, { ignorePunctuation: true })
|