Skip to content

Commit db0d78d

Browse files
committed
chore(uui-loader-bar): use the generic clamp function from uui-base
1 parent 68ad4fa commit db0d78d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/uui-loader-bar/lib/uui-loader-bar.element.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { css, html, LitElement } from 'lit';
2-
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
32
import { property } from 'lit/decorators.js';
4-
5-
const clamp = (num: number, min: number, max: number) =>
6-
Math.min(Math.max(num, min), max);
3+
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
4+
import { clamp } from '@umbraco-ui/uui-base/lib/utils';
75

86
/**
97
* @element uui-loader-bar

0 commit comments

Comments
 (0)