@skf-design-system/ui-components 1.0.1-beta.1 → 1.0.2-beta.1

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.
Files changed (299) hide show
  1. package/README.md +13 -26
  2. package/dist/components/accordion/accordion-item.component.d.ts +36 -0
  3. package/dist/components/accordion/accordion-item.component.js +87 -0
  4. package/dist/components/accordion/accordion-item.d.ts +3 -3
  5. package/dist/components/accordion/accordion-item.js +4 -5
  6. package/dist/components/accordion/accordion-item.styles.js +77 -0
  7. package/dist/components/accordion/accordion.component.d.ts +9 -13
  8. package/dist/components/accordion/accordion.component.js +12 -13
  9. package/dist/components/accordion/accordion.d.ts +0 -1
  10. package/dist/components/accordion/accordion.js +0 -2
  11. package/dist/components/alert/alert.component.d.ts +6 -10
  12. package/dist/components/alert/alert.component.js +15 -16
  13. package/dist/components/alert/alert.styles.js +0 -5
  14. package/dist/components/breadcrumb/breadcrumb-item.component.js +61 -0
  15. package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
  16. package/dist/components/breadcrumb/breadcrumb-item.styles.js +62 -0
  17. package/dist/components/breadcrumb/breadcrumb.component.d.ts +2 -2
  18. package/dist/components/breadcrumb/breadcrumb.component.js +60 -0
  19. package/dist/components/breadcrumb/breadcrumb.js +6 -0
  20. package/dist/components/breadcrumb/breadcrumb.styles.js +22 -0
  21. package/dist/components/button/button.component.d.ts +13 -10
  22. package/dist/components/button/button.component.js +83 -76
  23. package/dist/components/button/button.styles.d.ts +1 -2
  24. package/dist/components/button/button.styles.js +1 -1
  25. package/dist/components/card/card.component.d.ts +1 -1
  26. package/dist/components/card/card.component.js +18 -30
  27. package/dist/components/card/card.styles.js +25 -28
  28. package/dist/components/checkbox/checkbox.component.d.ts +16 -14
  29. package/dist/components/checkbox/checkbox.component.js +5 -5
  30. package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
  31. package/dist/components/checkbox/checkbox.styles.js +1 -5
  32. package/dist/components/date-picker/datepicker.calendar.component.d.ts +5 -0
  33. package/dist/components/date-picker/datepicker.calendar.component.js +128 -95
  34. package/dist/components/date-picker/datepicker.calendar.styles.js +35 -25
  35. package/dist/components/date-picker/datepicker.component.d.ts +5 -0
  36. package/dist/components/date-picker/datepicker.component.js +117 -97
  37. package/dist/components/date-picker/datepicker.helpers.d.ts +3 -2
  38. package/dist/components/date-picker/datepicker.helpers.js +46 -39
  39. package/dist/components/date-picker/datepicker.styles.js +14 -26
  40. package/dist/components/date-picker-input/datepicker-input.component.d.ts +14 -5
  41. package/dist/components/date-picker-input/datepicker-input.component.js +264 -219
  42. package/dist/components/date-picker-input/datepicker-input.helpers.d.ts +36 -2
  43. package/dist/components/date-picker-input/datepicker-input.helpers.js +25 -23
  44. package/dist/components/date-picker-input/datepicker-input.styles.js +6 -10
  45. package/dist/components/dialog/dialog.component.d.ts +20 -29
  46. package/dist/components/dialog/dialog.component.js +85 -75
  47. package/dist/components/dialog/dialog.styles.js +4 -4
  48. package/dist/components/divider/divider.component.d.ts +4 -8
  49. package/dist/components/divider/divider.component.js +24 -46
  50. package/dist/components/divider/divider.styles.js +34 -30
  51. package/dist/components/drawer/drawer.component.d.ts +61 -0
  52. package/dist/components/drawer/drawer.component.js +125 -0
  53. package/dist/components/drawer/drawer.d.ts +8 -0
  54. package/dist/components/drawer/drawer.js +6 -0
  55. package/dist/components/drawer/drawer.styles.js +71 -0
  56. package/dist/components/header/header.component.d.ts +46 -0
  57. package/dist/components/header/header.component.js +116 -0
  58. package/dist/components/header/header.d.ts +8 -0
  59. package/dist/components/header/header.js +6 -0
  60. package/dist/components/header/header.styles.js +68 -0
  61. package/dist/components/heading/heading.component.d.ts +3 -11
  62. package/dist/components/heading/heading.component.js +24 -23
  63. package/dist/components/heading/heading.styles.d.ts +1 -2
  64. package/dist/components/heading/heading.styles.js +1 -1
  65. package/dist/components/icon/icon.component.d.ts +11 -17
  66. package/dist/components/icon/icon.component.js +2 -2
  67. package/dist/components/icon/icon.styles.d.ts +1 -2
  68. package/dist/components/icon/icon.styles.js +1 -1
  69. package/dist/components/input/input.component.d.ts +30 -31
  70. package/dist/components/input/input.component.js +138 -125
  71. package/dist/components/input/input.controllers.d.ts +20 -6
  72. package/dist/components/input/input.controllers.js +14 -10
  73. package/dist/components/link/link.component.d.ts +12 -14
  74. package/dist/components/link/link.component.js +35 -34
  75. package/dist/components/link/link.styles.d.ts +1 -2
  76. package/dist/components/link/link.styles.js +24 -20
  77. package/dist/components/loader/loader.component.d.ts +1 -1
  78. package/dist/components/loader/loader.component.js +36 -40
  79. package/dist/components/loader/loader.styles.d.ts +1 -2
  80. package/dist/components/loader/loader.styles.js +40 -32
  81. package/dist/components/logo/logo.component.d.ts +4 -5
  82. package/dist/components/logo/logo.component.js +1 -1
  83. package/dist/components/menu/menu-item.component.d.ts +13 -0
  84. package/dist/components/{menu-item → menu}/menu-item.component.js +3 -3
  85. package/dist/components/menu/menu.component.d.ts +10 -8
  86. package/dist/components/menu/menu.component.js +8 -10
  87. package/dist/components/nav/nav-item.component.d.ts +18 -0
  88. package/dist/components/nav/nav-item.component.js +38 -0
  89. package/dist/components/nav/nav-item.d.ts +8 -0
  90. package/dist/components/nav/nav-item.js +6 -0
  91. package/dist/components/nav/nav-item.styles.js +39 -0
  92. package/dist/components/nav/nav.component.d.ts +17 -0
  93. package/dist/components/nav/nav.component.js +34 -0
  94. package/dist/components/nav/nav.d.ts +8 -0
  95. package/dist/components/nav/nav.js +6 -0
  96. package/dist/components/nav/nav.styles.d.ts +1 -0
  97. package/dist/components/nav/nav.styles.js +17 -0
  98. package/dist/components/popover/popover.component.d.ts +11 -8
  99. package/dist/components/popover/popover.component.js +24 -26
  100. package/dist/components/progress/progress.component.d.ts +2 -2
  101. package/dist/components/progress/progress.component.js +31 -37
  102. package/dist/components/progress/progress.styles.js +40 -35
  103. package/dist/components/radio/radio.component.d.ts +19 -13
  104. package/dist/components/radio/radio.component.js +12 -12
  105. package/dist/components/radio/radio.styles.d.ts +1 -2
  106. package/dist/components/radio/radio.styles.js +1 -1
  107. package/dist/components/segmented-button/segmented-button-item.component.d.ts +36 -0
  108. package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
  109. package/dist/components/segmented-button/segmented-button-item.d.ts +8 -0
  110. package/dist/components/segmented-button/segmented-button-item.js +6 -0
  111. package/dist/components/segmented-button/segmented-button-item.styles.d.ts +1 -0
  112. package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
  113. package/dist/components/segmented-button/segmented-button.component.d.ts +30 -0
  114. package/dist/components/segmented-button/segmented-button.component.js +73 -0
  115. package/dist/components/segmented-button/segmented-button.d.ts +8 -0
  116. package/dist/components/segmented-button/segmented-button.js +6 -0
  117. package/dist/components/segmented-button/segmented-button.styles.d.ts +1 -0
  118. package/dist/components/segmented-button/segmented-button.styles.js +16 -0
  119. package/dist/components/{select-option-group → select}/select-option-group.component.js +1 -1
  120. package/dist/components/select/select-option-group.style.d.ts +1 -0
  121. package/dist/components/{select-option → select}/select-option.component.d.ts +7 -8
  122. package/dist/components/{select-option → select}/select-option.component.js +15 -15
  123. package/dist/components/select/select-option.controllers.d.ts +15 -0
  124. package/dist/components/select/select-option.styles.d.ts +1 -0
  125. package/dist/components/select/select.component.d.ts +16 -15
  126. package/dist/components/select/select.component.js +19 -19
  127. package/dist/components/select/select.controllers.d.ts +21 -10
  128. package/dist/components/select/select.controllers.js +31 -23
  129. package/dist/components/select/select.stories.icons.d.ts +7 -0
  130. package/dist/components/{stepper-item → stepper}/stepper-item.component.js +8 -8
  131. package/dist/components/stepper/stepper-item.styles.d.ts +1 -0
  132. package/dist/components/stepper/stepper.component.d.ts +4 -3
  133. package/dist/components/stepper/stepper.component.js +15 -15
  134. package/dist/components/stepper/stepper.helpers.d.ts +1 -1
  135. package/dist/components/switch/switch.component.d.ts +7 -6
  136. package/dist/components/switch/switch.component.js +21 -21
  137. package/dist/components/tab/tab.component.js +1 -1
  138. package/dist/components/tab-group/tab-group.component.js +1 -1
  139. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  140. package/dist/components/tag/tag.component.d.ts +14 -16
  141. package/dist/components/tag/tag.component.js +36 -39
  142. package/dist/components/textarea/textarea.component.d.ts +10 -11
  143. package/dist/components/textarea/textarea.component.js +65 -67
  144. package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
  145. package/dist/components/{toast-item → toast}/toast-item.js +4 -0
  146. package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
  147. package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
  148. package/dist/components/toast/toast.component.d.ts +6 -5
  149. package/dist/components/toast/toast.component.js +15 -15
  150. package/dist/components/toast/toast.singleton.d.ts +4 -4
  151. package/dist/components/toast/toast.singleton.js +12 -12
  152. package/dist/components/tooltip/tooltip.component.d.ts +7 -7
  153. package/dist/components/tooltip/tooltip.component.js +16 -11
  154. package/dist/custom-elements.json +2718 -2073
  155. package/dist/index.d.ts +16 -6
  156. package/dist/index.js +103 -75
  157. package/dist/internal/base-classes/popover/popover.base.d.ts +24 -9
  158. package/dist/internal/base-classes/popover/popover.base.js +138 -77
  159. package/dist/internal/base-classes/popover/popover.styles.js +14 -1
  160. package/dist/internal/components/hint/hint.component.d.ts +2 -2
  161. package/dist/internal/components/hint/hint.component.js +2 -2
  162. package/dist/internal/components/hint/hint.styles.d.ts +1 -2
  163. package/dist/internal/components/hint/hint.styles.js +1 -1
  164. package/dist/internal/constants/iconSeverity.d.ts +3 -2
  165. package/dist/internal/constants/iconSeverity.js +2 -3
  166. package/dist/internal/controllers/elementOverflowController.d.ts +13 -0
  167. package/dist/internal/controllers/popover.controller.d.ts +12 -7
  168. package/dist/internal/controllers/popover.controller.js +9 -14
  169. package/dist/internal/helpers/hintSeverity.d.ts +2 -2
  170. package/dist/internal/helpers/hintSeverity.js +1 -1
  171. package/dist/internal/helpers/utilityTypes.d.ts +1 -1
  172. package/dist/internal/helpers/uuid.d.ts +15 -0
  173. package/dist/internal/helpers/uuid.js +14 -0
  174. package/dist/internal/storybook/styles.d.ts +1 -0
  175. package/dist/internal/types/formField.d.ts +1 -1
  176. package/dist/internal/types.d.ts +18 -0
  177. package/dist/styles/component.styles.d.ts +1 -2
  178. package/dist/styles/component.styles.js +1 -1
  179. package/dist/styles/form-field.styles.js +11 -6
  180. package/dist/styles/global.css +1 -1
  181. package/dist/types/jsx/custom-element-jsx.d.ts +673 -1310
  182. package/dist/types/vue/index.d.ts +456 -319
  183. package/dist/vscode.html-custom-data.json +402 -1080
  184. package/dist/web-types.json +986 -767
  185. package/package.json +44 -55
  186. package/dist/components/collapse/collapse.component.d.ts +0 -40
  187. package/dist/components/collapse/collapse.component.js +0 -86
  188. package/dist/components/collapse/collapse.d.ts +0 -8
  189. package/dist/components/collapse/collapse.js +0 -6
  190. package/dist/components/collapse/collapse.styles.d.ts +0 -2
  191. package/dist/components/collapse/collapse.styles.js +0 -77
  192. package/dist/components/menu-item/menu-item.component.d.ts +0 -25
  193. package/dist/components/select-option/select-option.controllers.d.ts +0 -9
  194. package/dist/internal/constants/heading.d.ts +0 -2
  195. package/dist/react/index.d.ts +0 -36
  196. package/dist/react/index.js +0 -36
  197. package/dist/react/skf-accordion/index.d.ts +0 -3
  198. package/dist/react/skf-accordion/index.js +0 -13
  199. package/dist/react/skf-alert/index.d.ts +0 -9
  200. package/dist/react/skf-alert/index.js +0 -17
  201. package/dist/react/skf-breadcrumb/index.d.ts +0 -9
  202. package/dist/react/skf-breadcrumb/index.js +0 -17
  203. package/dist/react/skf-breadcrumb-item/index.d.ts +0 -3
  204. package/dist/react/skf-breadcrumb-item/index.js +0 -13
  205. package/dist/react/skf-button/index.d.ts +0 -9
  206. package/dist/react/skf-button/index.js +0 -17
  207. package/dist/react/skf-card/index.d.ts +0 -3
  208. package/dist/react/skf-card/index.js +0 -13
  209. package/dist/react/skf-checkbox/index.d.ts +0 -9
  210. package/dist/react/skf-checkbox/index.js +0 -17
  211. package/dist/react/skf-collapse/index.d.ts +0 -9
  212. package/dist/react/skf-collapse/index.js +0 -17
  213. package/dist/react/skf-datepicker/index.d.ts +0 -12
  214. package/dist/react/skf-datepicker/index.js +0 -18
  215. package/dist/react/skf-dialog/index.d.ts +0 -15
  216. package/dist/react/skf-dialog/index.js +0 -19
  217. package/dist/react/skf-divider/index.d.ts +0 -3
  218. package/dist/react/skf-divider/index.js +0 -13
  219. package/dist/react/skf-heading/index.d.ts +0 -3
  220. package/dist/react/skf-heading/index.js +0 -13
  221. package/dist/react/skf-icon/index.d.ts +0 -3
  222. package/dist/react/skf-icon/index.js +0 -13
  223. package/dist/react/skf-input/index.d.ts +0 -12
  224. package/dist/react/skf-input/index.js +0 -18
  225. package/dist/react/skf-link/index.d.ts +0 -3
  226. package/dist/react/skf-link/index.js +0 -13
  227. package/dist/react/skf-loader/index.d.ts +0 -3
  228. package/dist/react/skf-loader/index.js +0 -13
  229. package/dist/react/skf-logo/index.d.ts +0 -3
  230. package/dist/react/skf-logo/index.js +0 -13
  231. package/dist/react/skf-menu/index.d.ts +0 -12
  232. package/dist/react/skf-menu/index.js +0 -18
  233. package/dist/react/skf-menu-item/index.d.ts +0 -27
  234. package/dist/react/skf-menu-item/index.js +0 -23
  235. package/dist/react/skf-popover/index.d.ts +0 -12
  236. package/dist/react/skf-popover/index.js +0 -18
  237. package/dist/react/skf-progress/index.d.ts +0 -3
  238. package/dist/react/skf-progress/index.js +0 -13
  239. package/dist/react/skf-radio/index.d.ts +0 -9
  240. package/dist/react/skf-radio/index.js +0 -17
  241. package/dist/react/skf-select/index.d.ts +0 -21
  242. package/dist/react/skf-select/index.js +0 -21
  243. package/dist/react/skf-select-option/index.d.ts +0 -9
  244. package/dist/react/skf-select-option/index.js +0 -17
  245. package/dist/react/skf-select-option-group/index.d.ts +0 -3
  246. package/dist/react/skf-select-option-group/index.js +0 -13
  247. package/dist/react/skf-stepper/index.d.ts +0 -9
  248. package/dist/react/skf-stepper/index.js +0 -17
  249. package/dist/react/skf-stepper-item/index.d.ts +0 -9
  250. package/dist/react/skf-stepper-item/index.js +0 -17
  251. package/dist/react/skf-switch/index.d.ts +0 -3
  252. package/dist/react/skf-switch/index.js +0 -13
  253. package/dist/react/skf-tab/index.d.ts +0 -12
  254. package/dist/react/skf-tab/index.js +0 -18
  255. package/dist/react/skf-tab-group/index.d.ts +0 -3
  256. package/dist/react/skf-tab-group/index.js +0 -13
  257. package/dist/react/skf-tab-panel/index.d.ts +0 -3
  258. package/dist/react/skf-tab-panel/index.js +0 -13
  259. package/dist/react/skf-tag/index.d.ts +0 -3
  260. package/dist/react/skf-tag/index.js +0 -13
  261. package/dist/react/skf-textarea/index.d.ts +0 -12
  262. package/dist/react/skf-textarea/index.js +0 -18
  263. package/dist/react/skf-toast/index.d.ts +0 -3
  264. package/dist/react/skf-toast/index.js +0 -13
  265. package/dist/react/skf-toast-wrapper/index.d.ts +0 -3
  266. package/dist/react/skf-toast-wrapper/index.js +0 -13
  267. package/dist/react/skf-tooltip/index.d.ts +0 -12
  268. package/dist/react/skf-tooltip/index.js +0 -18
  269. /package/dist/components/{breadcrumb-item/breadcrumb-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
  270. /package/dist/components/{collapse/collapse.test.d.ts → accordion/accordion-item.test.d.ts} +0 -0
  271. /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.d.ts +0 -0
  272. /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.d.ts +0 -0
  273. /package/dist/components/{menu-item/menu-item.styles.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
  274. /package/dist/components/{select-option-group/select-option-group.style.d.ts → drawer/drawer.styles.d.ts} +0 -0
  275. /package/dist/components/{select-option/select-option.styles.d.ts → header/header.styles.d.ts} +0 -0
  276. /package/dist/components/{menu-item → menu}/menu-item.d.ts +0 -0
  277. /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
  278. /package/dist/components/{stepper-item/stepper-item.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
  279. /package/dist/components/{menu-item → menu}/menu-item.styles.js +0 -0
  280. /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → nav/nav-item.styles.d.ts} +0 -0
  281. /package/dist/components/{select-option-group → select}/select-option-group.component.d.ts +0 -0
  282. /package/dist/components/{select-option-group → select}/select-option-group.d.ts +0 -0
  283. /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
  284. /package/dist/components/{select-option-group → select}/select-option-group.style.js +0 -0
  285. /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
  286. /package/dist/components/{select-option → select}/select-option.js +0 -0
  287. /package/dist/components/{select-option → select}/select-option.styles.js +0 -0
  288. /package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +0 -0
  289. /package/dist/components/{stepper-item → stepper}/stepper-item.d.ts +0 -0
  290. /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
  291. /package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +0 -0
  292. /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
  293. /package/dist/components/{toast-item → toast}/toast-item.component.js +0 -0
  294. /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
  295. /package/dist/components/{toast-item → toast}/toast-item.styles.js +0 -0
  296. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
  297. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
  298. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
  299. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,10 +1,10 @@
1
- import type { SkfBreadcrumbItem } from '../breadcrumb-item/breadcrumb-item.component.js';
2
1
  import { SkfElement } from '../../internal/components/skf-element';
3
2
  import { type CSSResultGroup } from 'lit';
3
+ import type { SkfBreadcrumbItem } from './breadcrumb-item.component.js';
4
4
  /**
5
5
  * The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
6
6
  *
7
- * @documentation See [zeroheight](https://zeroheight.com/****) for design principles
7
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/3338ef-breadcrumbs) for design principles.
8
8
  *
9
9
  * @event click - Fired when the item is clicked
10
10
  *
@@ -0,0 +1,60 @@
1
+ import { SkfElement as c } from "../../internal/components/skf-element.js";
2
+ import { componentStyles as f } from "../../styles/component.styles.js";
3
+ import "lit";
4
+ import { property as p, state as _, queryAssignedElements as d } from "lit/decorators.js";
5
+ import { classMap as y } from "lit/directives/class-map.js";
6
+ import { ifDefined as u } from "lit/directives/if-defined.js";
7
+ import { literal as h, html as b } from "lit/static-html.js";
8
+ import { styles as g } from "./breadcrumb.styles.js";
9
+ var v = Object.defineProperty, r = (a, t, i, n) => {
10
+ for (var s = void 0, l = a.length - 1, m; l >= 0; l--)
11
+ (m = a[l]) && (s = m(t, i, s) || s);
12
+ return s && v(t, i, s), s;
13
+ };
14
+ const o = class o extends c {
15
+ constructor() {
16
+ super(...arguments), this.label = "Breadcrumb", this.size = "md", this._isDynamic = !1, this._handleSlotChange = () => {
17
+ this._items.forEach((t, i) => {
18
+ this._isDynamic = !!t.href;
19
+ const n = i === this._items.length - 1;
20
+ this._isDynamic && n && (t._isCurrent = !0);
21
+ });
22
+ };
23
+ }
24
+ firstUpdated() {
25
+ this._handleSlotChange();
26
+ }
27
+ render() {
28
+ const t = this._isDynamic ? h`nav` : h`div`;
29
+ return b`
30
+ <${t}
31
+ aria-label=${u(this.label && this._isDynamic ? this.label : void 0)}
32
+ class=${y({
33
+ breadcrumb: !0,
34
+ "breadcrumb--small": this.size === "sm"
35
+ })}
36
+ >
37
+ <ol class="breadcrumb__list">
38
+ <slot @slotchange=${this._handleSlotChange}></slot>
39
+ </ol>
40
+ </{tag}>
41
+ `;
42
+ }
43
+ };
44
+ o.styles = [f, g];
45
+ let e = o;
46
+ r([
47
+ p()
48
+ ], e.prototype, "label");
49
+ r([
50
+ p({ reflect: !0 })
51
+ ], e.prototype, "size");
52
+ r([
53
+ _()
54
+ ], e.prototype, "_isDynamic");
55
+ r([
56
+ d()
57
+ ], e.prototype, "_items");
58
+ export {
59
+ e as SkfBreadcrumb
60
+ };
@@ -0,0 +1,6 @@
1
+ import { SkfBreadcrumb as r } from "./breadcrumb.component.js";
2
+ r.define("skf-breadcrumb");
3
+ export {
4
+ r as SkfBreadcrumb,
5
+ r as default
6
+ };
@@ -0,0 +1,22 @@
1
+ import { css as t } from "lit";
2
+ const s = t`
3
+ /* stylelint-disable selector-class-pattern */
4
+ @layer components {
5
+ :host {
6
+ contain: layout;
7
+ }
8
+
9
+ .breadcrumb--small {
10
+ font-size: var(--skf-font-size-75);
11
+ font-weight: var(--skf-font-weight-medium);
12
+ }
13
+
14
+ .breadcrumb__list {
15
+ align-items: center;
16
+ display: flex;
17
+ }
18
+ }
19
+ `;
20
+ export {
21
+ s as styles
22
+ };
@@ -1,18 +1,23 @@
1
- import type { SkfIcon } from '../icon/icon.component.js';
2
1
  import '../icon/icon.js';
3
2
  import '../loader/loader.js';
4
3
  import { SkfElement } from '../../internal/components/skf-element.js';
4
+ import type { Icon } from '../../internal/types.js';
5
5
  import { type CSSResultGroup, type PropertyValues } from 'lit';
6
+ type SkfButtonType = HTMLButtonElement['type'];
6
7
  /**
7
8
  * Component to be used in forms or for interactivity
8
9
  *
10
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/02493d-buttons) for design principles
11
+ *
9
12
  * @slot - The Primary content
10
13
  *
11
- * @event click - Fires when the button is clicked
14
+ * @event {CustomEvent} click - Fires when the button is clicked
12
15
  *
13
16
  * @tagname skf-button
14
17
  */
15
18
  export declare class SkfButton extends SkfElement {
19
+ #private;
20
+ static styles: CSSResultGroup;
16
21
  static formAssociated: boolean;
17
22
  static shadowRootOptions: {
18
23
  delegatesFocus: boolean;
@@ -20,18 +25,15 @@ export declare class SkfButton extends SkfElement {
20
25
  serializable?: boolean;
21
26
  slotAssignment?: SlotAssignmentMode;
22
27
  };
23
- static styles: CSSResultGroup;
24
28
  /** @internal */
25
29
  private _transitionOptions;
26
- _internals: ElementInternals;
27
30
  /** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
28
31
  destructive: boolean;
29
32
  /** If true, removes border */
30
33
  disabled: boolean;
31
34
  /** If provided, renders an icon before or after the text */
32
- /** @type { "arrowDown" | "arrowDownUp" | "arrowLeft" | "arrowRight" | "arrowUp" | "article" | "artificialIntelligence" | "asset" | "attachment" | "bandCursor" | "bands" | "batteryEmpty" | "batteryFull" | "batteryLow" | "bearingFault" | "book" | "bulb" | "burger" | "cPM" | "calendar" | "calendarBooked" | "calendarEmpty" | "calendarNotBooked" | "calendarRecurring" | "caretDown" | "caretUp" | "caretUpDown" | "chat" | "check" | "checkCircle" | "checkSmall" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronUpDown" | "close" | "closeAllFaults" | "closeFault" | "closeSmall" | "columnGraph" | "comment" | "connection1" | "connection2" | "connection3" | "connection4" | "danger" | "defectFrequencies" | "defectFrequenciesAlternative" | "doubleChevronLeft" | "doubleChevronRight" | "download" | "draft" | "draftFilled" | "draftOutlined" | "dragNDrop" | "drop" | "duplicate" | "edit" | "emailFilled" | "emailOutlined" | "exclamation" | "eye" | "eyeHidden" | "eyeVisible" | "filter" | "forbidden" | "fullScreen" | "fullScreenExit" | "functionalLocation" | "harmonicCursor" | "heatmap" | "hierarchy" | "history" | "historyAlt" | "hourglassFramedFilled" | "hourglassFramedOutlined" | "hourglassOutlined" | "hz" | "iMX" | "image" | "infoCircleFilled" | "infoCircleOutlined" | "integration" | "kebab" | "link" | "listGroup" | "listItem" | "locationPin" | "lock" | "logOut" | "meatballs" | "microphone" | "minus" | "minusSmall" | "noData" | "o" | "openInNew" | "overlayBaseline" | "pDF" | "paper" | "pause" | "pieChart" | "pin" | "play" | "plus" | "powerOff" | "printer" | "proCollect" | "recAction" | "received" | "refresh" | "reorder" | "replace" | "reply" | "rewalkableRoute" | "routes" | "search" | "send" | "sensorA" | "sensorB" | "settings" | "sidebandCursor" | "singleCursor" | "spectrum" | "starFilled" | "starOutlined" | "statusCircle" | "stop" | "structuralVibration" | "sync" | "timewave" | "trash" | "trend" | "trendingUp" | "undo" | "unknownCircle" | "unknownDiamond" | "unlink" | "unlock" | "unscheduledAction" | "upload" | "user" | "viewFull" | "viewHorizontal" | "viewVertical" | "warning" | "warningCircle" | "warningDiamond" | "zoomIn" | "zoomOut" } */
33
- icon?: SkfIcon['name'];
34
- /** If true, removes border */
35
+ icon?: Icon;
36
+ /** If true, button will take a square shape */
35
37
  iconOnly: boolean;
36
38
  /** Determines the positioning of the icon in relation to the text */
37
39
  iconPosition: 'left' | 'right';
@@ -39,10 +41,9 @@ export declare class SkfButton extends SkfElement {
39
41
  loading: boolean;
40
42
  noValidate: boolean;
41
43
  /** If provided, displays an alternative size */
42
- size: 'sm' | 'md' | 'lg';
44
+ size?: 'sm' | 'md' | 'lg';
43
45
  /** If provided, changes the button type */
44
- /** @type { 'button' | 'submit' | 'reset' } */
45
- type: HTMLButtonElement['type'];
46
+ type: SkfButtonType;
46
47
  /** If provided, alters the appearance */
47
48
  variant: 'primary' | 'secondary' | 'tertiary';
48
49
  /** @internal */
@@ -55,6 +56,7 @@ export declare class SkfButton extends SkfElement {
55
56
  private $button?;
56
57
  constructor();
57
58
  protected firstUpdated(_changedProperties: PropertyValues): void;
59
+ /** @internal */
58
60
  _handleLoadingChange(): void;
59
61
  /** @internal */
60
62
  _handleClick: (e: MouseEvent) => void;
@@ -72,3 +74,4 @@ export declare class SkfButton extends SkfElement {
72
74
  private _renderIcon;
73
75
  render(): import("lit").TemplateResult<1>;
74
76
  }
77
+ export {};
@@ -1,33 +1,40 @@
1
+ var u = (i) => {
2
+ throw TypeError(i);
3
+ };
4
+ var _ = (i, s, t) => s.has(i) || u("Cannot " + t);
5
+ var p = (i, s, t) => (_(i, s, "read from private field"), t ? t.call(i) : s.get(i)), v = (i, s, t) => s.has(i) ? u("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, t), $ = (i, s, t, a) => (_(i, s, "write to private field"), a ? a.call(i, t) : s.set(i, t), t);
1
6
  import "../icon/icon.js";
2
7
  import "../loader/loader.js";
3
- import { SkfElement as m } from "../../internal/components/skf-element.js";
4
- import { watch as f } from "../../internal/helpers/watch.js";
5
- import u from "../../styles/component.styles.js";
6
- import { html as d, LitElement as _, nothing as p } from "lit";
7
- import { property as o, state as v, query as c } from "lit/decorators.js";
8
- import { classMap as $ } from "lit/directives/class-map.js";
9
- import { ifDefined as b } from "lit/directives/if-defined.js";
10
- import g from "./button.styles.js";
11
- var O = Object.defineProperty, V = Object.getOwnPropertyDescriptor, s = (y, t, l, r) => {
12
- for (var e = r > 1 ? void 0 : r ? V(t, l) : t, a = y.length - 1, n; a >= 0; a--)
13
- (n = y[a]) && (e = (r ? n(t, l, e) : n(e)) || e);
14
- return r && e && O(t, l, e), e;
15
- };
16
- const h = class h extends m {
8
+ import { SkfElement as O } from "../../internal/components/skf-element.js";
9
+ import { watch as V } from "../../internal/helpers/watch.js";
10
+ import { componentStyles as w } from "../../styles/component.styles.js";
11
+ import { html as y, LitElement as z, nothing as b } from "lit";
12
+ import { property as r, state as P, query as m } from "lit/decorators.js";
13
+ import { classMap as L } from "lit/directives/class-map.js";
14
+ import { ifDefined as g } from "lit/directives/if-defined.js";
15
+ import { styles as C } from "./button.styles.js";
16
+ var F = Object.defineProperty, k = Object.getOwnPropertyDescriptor, o = (i, s, t, a) => {
17
+ for (var n = a > 1 ? void 0 : a ? k(s, t) : s, h = i.length - 1, d; h >= 0; h--)
18
+ (d = i[h]) && (n = (a ? d(s, t, n) : d(n)) || n);
19
+ return a && n && F(s, t, n), n;
20
+ }, l;
21
+ const c = class c extends O {
17
22
  constructor() {
18
- super(), this._transitionOptions = {
23
+ super();
24
+ v(this, l);
25
+ this._transitionOptions = {
19
26
  duration: 200,
20
27
  fill: "forwards"
21
28
  }, this.destructive = !1, this.disabled = !1, this.iconOnly = !1, this.iconPosition = "left", this.loading = !1, this.noValidate = !1, this.size = "md", this.type = "button", this.variant = "primary", this._loaderVisible = !1, this._handleClick = (t) => {
22
29
  t.preventDefault(), t.stopPropagation(), !(this.disabled || this.loading) && (this.dispatchEvent(new CustomEvent("click", { bubbles: !0, composed: !0, detail: t })), this.type === "submit" && this._submitForm(), this.type === "reset" && this._resetForm());
23
30
  }, this._submitForm = () => {
24
- var e, a, n;
25
- const t = !((e = this._internals.form) != null && e.reportValidity()), l = !this.noValidate, r = !((a = this._internals.form) != null && a.hasAttribute("no-validate"));
26
- (l || r) && t || (n = this._internals.form) == null || n.requestSubmit();
31
+ var h, d, f;
32
+ const t = !((h = p(this, l).form) != null && h.reportValidity()), a = !this.noValidate, n = !((d = p(this, l).form) != null && d.hasAttribute("no-validate"));
33
+ (a || n) && t || (f = p(this, l).form) == null || f.requestSubmit();
27
34
  }, this._resetForm = () => {
28
35
  var t;
29
- (t = this._internals.form) == null || t.reset();
30
- }, this._renderIcon = () => d`<skf-icon class="skf-icon-host" name=${b(this.icon)}></skf-icon>`, this._internals = this.attachInternals();
36
+ (t = p(this, l).form) == null || t.reset();
37
+ }, this._renderIcon = () => y`<skf-icon class="skf-icon-host" name=${g(this.icon)}></skf-icon>`, $(this, l, this.attachInternals());
31
38
  }
32
39
  firstUpdated(t) {
33
40
  if (t.has("loading") && this.loading) {
@@ -53,11 +60,12 @@ const h = class h extends m {
53
60
  !this.$body || !this.$loader || (await this.$loader.animate({ opacity: 0 }, this._transitionOptions).finished, this._loaderVisible = !1, this.$body.animate({ opacity: 1 }, this._transitionOptions));
54
61
  }
55
62
  render() {
56
- return d`
63
+ return y`
57
64
  <button
58
65
  ?disabled=${this.disabled || this.loading}
66
+ @click=${this._handleClick}
59
67
  aria-busy=${this.loading}
60
- class=${$({
68
+ class=${L({
61
69
  btn: !0,
62
70
  "btn--destructive": this.destructive,
63
71
  "btn--icon-only": this.iconOnly,
@@ -68,68 +76,67 @@ const h = class h extends m {
68
76
  "btn--variant-secondary": this.variant === "secondary",
69
77
  "btn--variant-tertiary": this.variant === "tertiary"
70
78
  })}
71
- type=${b(this.type)}
72
- @click=${this._handleClick}
79
+ type=${g(this.type)}
73
80
  title=${/* An empty title prevents browser validation tooltips from appearing on hover */
74
81
  this.title}
75
82
  >
76
- ${this.variant === "primary" && this._loaderVisible ? d`<skf-loader class="btn__loader" invert size="sm"></skf-loader>` : ""}
83
+ ${this.variant === "primary" && this._loaderVisible ? y`<skf-loader class="btn__loader" invert size="sm"></skf-loader>` : ""}
77
84
  <div class="btn__body" id="body">
78
- ${this.icon && this.iconPosition === "left" ? this._renderIcon() : p}
79
- ${this.iconOnly ? p : d`<slot class="btn__label"></slot>`}
80
- ${this.icon && this.iconPosition === "right" ? this._renderIcon() : p}
85
+ ${this.icon && this.iconPosition === "left" ? this._renderIcon() : b}
86
+ ${this.iconOnly ? b : y`<slot class="btn__label"></slot>`}
87
+ ${this.icon && this.iconPosition === "right" ? this._renderIcon() : b}
81
88
  </div>
82
89
  </button>
83
90
  `;
84
91
  }
85
92
  };
86
- h.formAssociated = !0, h.shadowRootOptions = { ..._.shadowRootOptions, delegatesFocus: !0 }, h.styles = [u, g];
87
- let i = h;
88
- s([
89
- o({ type: Boolean })
90
- ], i.prototype, "destructive", 2);
91
- s([
92
- o({ type: Boolean })
93
- ], i.prototype, "disabled", 2);
94
- s([
95
- o()
96
- ], i.prototype, "icon", 2);
97
- s([
98
- o({ type: Boolean })
99
- ], i.prototype, "iconOnly", 2);
100
- s([
101
- o({ attribute: "icon-position" })
102
- ], i.prototype, "iconPosition", 2);
103
- s([
104
- o({ type: Boolean, reflect: !0 })
105
- ], i.prototype, "loading", 2);
106
- s([
107
- o({ type: Boolean, attribute: "no-validate" })
108
- ], i.prototype, "noValidate", 2);
109
- s([
110
- o({ reflect: !0 })
111
- ], i.prototype, "size", 2);
112
- s([
113
- o()
114
- ], i.prototype, "type", 2);
115
- s([
116
- o({ reflect: !0 })
117
- ], i.prototype, "variant", 2);
118
- s([
119
- v()
120
- ], i.prototype, "_loaderVisible", 2);
121
- s([
122
- c("skf-loader")
123
- ], i.prototype, "$loader", 2);
124
- s([
125
- c("#body")
126
- ], i.prototype, "$body", 2);
127
- s([
128
- c("button")
129
- ], i.prototype, "$button", 2);
130
- s([
131
- f("loading", { afterUpdate: !0 })
132
- ], i.prototype, "_handleLoadingChange", 1);
93
+ l = new WeakMap(), c.styles = [w, C], c.formAssociated = !0, c.shadowRootOptions = { ...z.shadowRootOptions, delegatesFocus: !0 };
94
+ let e = c;
95
+ o([
96
+ r({ type: Boolean })
97
+ ], e.prototype, "destructive", 2);
98
+ o([
99
+ r({ type: Boolean })
100
+ ], e.prototype, "disabled", 2);
101
+ o([
102
+ r()
103
+ ], e.prototype, "icon", 2);
104
+ o([
105
+ r({ type: Boolean, attribute: "icon-only" })
106
+ ], e.prototype, "iconOnly", 2);
107
+ o([
108
+ r({ attribute: "icon-position" })
109
+ ], e.prototype, "iconPosition", 2);
110
+ o([
111
+ r({ type: Boolean, reflect: !0 })
112
+ ], e.prototype, "loading", 2);
113
+ o([
114
+ r({ type: Boolean, attribute: "no-validate" })
115
+ ], e.prototype, "noValidate", 2);
116
+ o([
117
+ r({ reflect: !0 })
118
+ ], e.prototype, "size", 2);
119
+ o([
120
+ r()
121
+ ], e.prototype, "type", 2);
122
+ o([
123
+ r({ reflect: !0 })
124
+ ], e.prototype, "variant", 2);
125
+ o([
126
+ P()
127
+ ], e.prototype, "_loaderVisible", 2);
128
+ o([
129
+ m("skf-loader")
130
+ ], e.prototype, "$loader", 2);
131
+ o([
132
+ m("#body")
133
+ ], e.prototype, "$body", 2);
134
+ o([
135
+ m("button")
136
+ ], e.prototype, "$button", 2);
137
+ o([
138
+ V("loading", { afterUpdate: !0 })
139
+ ], e.prototype, "_handleLoadingChange", 1);
133
140
  export {
134
- i as SkfButton
141
+ e as SkfButton
135
142
  };
@@ -1,2 +1 @@
1
- declare const _default: import("lit").CSSResult;
2
- export default _default;
1
+ export declare const styles: import("lit").CSSResult;
@@ -128,5 +128,5 @@ const r = o`
128
128
  }
129
129
  `;
130
130
  export {
131
- r as default
131
+ r as styles
132
132
  };
@@ -3,7 +3,7 @@ import { type CSSResultGroup } from 'lit';
3
3
  /**
4
4
  * The `<skf-card>` can be used to group related subjects in a container
5
5
  *
6
- * @documentation See [InVision DSM](https://skf.invisionapp.com/dsm/ab-skf/4-web-applications/nav/5fa7caf78c01200018354495/asset/6229d63d9fe16020a60657e5) for design principles
6
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/021eed-card) for design principles
7
7
  *
8
8
  * @slot - The card's main content
9
9
  *
@@ -1,44 +1,32 @@
1
- import { SkfElement as l } from "../../internal/components/skf-element.js";
2
- import c from "../../styles/component.styles.js";
3
- import { html as m } from "lit";
1
+ import { SkfElement as f } from "../../internal/components/skf-element.js";
2
+ import { componentStyles as m } from "../../styles/component.styles.js";
3
+ import { html as d } from "lit";
4
4
  import { property as o } from "lit/decorators.js";
5
- import { classMap as f } from "lit/directives/class-map.js";
6
- import { styles as h } from "./card.styles.js";
7
- var u = Object.defineProperty, s = (i, p, a, y) => {
8
- for (var t = void 0, e = i.length - 1, d; e >= 0; e--)
9
- (d = i[e]) && (t = d(p, a, t) || t);
10
- return t && u(p, a, t), t;
5
+ import { styles as u } from "./card.styles.js";
6
+ var c = Object.defineProperty, s = (p, l, i, y) => {
7
+ for (var t = void 0, r = p.length - 1, a; r >= 0; r--)
8
+ (a = p[r]) && (t = a(l, i, t) || t);
9
+ return t && c(l, i, t), t;
11
10
  };
12
- const n = class n extends l {
11
+ const n = class n extends f {
13
12
  constructor() {
14
13
  super(...arguments), this.noBorder = !1, this.noPadding = !1, this.stretch = !1;
15
14
  }
16
15
  render() {
17
- return m`
18
- <div
19
- class=${f({
20
- card: !0,
21
- "card--no-border": this.noBorder,
22
- "card--no-padding": this.noPadding,
23
- "card--stretch": this.stretch
24
- })}
25
- >
26
- <slot></slot>
27
- </div>
28
- `;
16
+ return d`<slot></slot>`;
29
17
  }
30
18
  };
31
- n.styles = [c, h];
32
- let r = n;
19
+ n.styles = [m, u];
20
+ let e = n;
33
21
  s([
34
- o({ type: Boolean, attribute: "no-border" })
35
- ], r.prototype, "noBorder");
22
+ o({ type: Boolean, attribute: "no-border", reflect: !0 })
23
+ ], e.prototype, "noBorder");
36
24
  s([
37
- o({ type: Boolean, attribute: "no-padding" })
38
- ], r.prototype, "noPadding");
25
+ o({ type: Boolean, attribute: "no-padding", reflect: !0 })
26
+ ], e.prototype, "noPadding");
39
27
  s([
40
28
  o({ type: Boolean, reflect: !0 })
41
- ], r.prototype, "stretch");
29
+ ], e.prototype, "stretch");
42
30
  export {
43
- r as SkfCard
31
+ e as SkfCard
44
32
  };
@@ -1,36 +1,33 @@
1
1
  import { css as r } from "lit";
2
- const a = r`
3
- /* stylelint-disable selector-class-pattern */
2
+ const s = r`
3
+ @layer components {
4
+ @layer base {
5
+ :host {
6
+ background-color: var(--skf-bg-color-neutral-1);
7
+ border: var(--skf-border-width-sm) solid
8
+ var(--_skf-card-border-color, var(--skf-border-color-tertiary));
9
+ border-radius: var(--skf-border-radius-sm);
10
+ box-shadow: var(--skf-shadow-md);
11
+ contain: layout;
12
+ padding: var(--_skf-card-padding, var(--skf-spacing-100));
13
+ }
14
+ }
4
15
 
5
- :host {
6
- contain: layout;
7
- }
8
-
9
- :host([stretch]) {
10
- block-size: 100%;
11
- }
12
-
13
- .card {
14
- background-color: var(--skf-bg-color-neutral-1);
15
- border: var(--skf-border-width-sm) solid
16
- var(--_skf-card-border-color, var(--skf-border-color-tertiary));
17
- border-radius: var(--skf-border-radius-sm);
18
- box-shadow: var(--skf-shadow-md);
19
- padding: var(--_skf-card-padding, var(--skf-spacing-100));
20
- }
21
-
22
- .card--no-border {
23
- --_skf-card-border-color: transparent;
24
- }
16
+ @layer mods {
17
+ :host([stretch]) {
18
+ block-size: 100%;
19
+ }
25
20
 
26
- .card--no-padding {
27
- --_skf-card-padding: 0;
28
- }
21
+ :host([no-border]) {
22
+ --_skf-card-border-color: transparent;
23
+ }
29
24
 
30
- .card--stretch {
31
- block-size: inherit;
25
+ :host([no-padding]) {
26
+ --_skf-card-padding: 0;
27
+ }
28
+ }
32
29
  }
33
30
  `;
34
31
  export {
35
- a as styles
32
+ s as styles
36
33
  };
@@ -1,5 +1,6 @@
1
1
  import '../icon/icon.js';
2
2
  import { FormBase } from '../../internal/components/formBase.js';
3
+ import type { FormFieldSeverity } from '../../internal/types.js';
3
4
  import type { FormFieldBaseProps } from '../../internal/types/formField.js';
4
5
  import { type CSSResultGroup } from 'lit';
5
6
  /**
@@ -7,10 +8,10 @@ import { type CSSResultGroup } from 'lit';
7
8
  *
8
9
  * @documentation See [zeroheight](https://zeroheight.com/853e936c9/p/94464f-checkbox) for design principles
9
10
  *
10
- * @attribute {boolean} disabled - If true, sets disabled state
11
- * @attribute {boolean} required - If true, value is required or must be checked for the form to be submittable
11
+ * @attribute {boolean} [disabled=false] - If true, sets disabled state
12
+ * @attribute {boolean} [required=false] - If true, value is required or must be checked for the form to be submittable
12
13
  *
13
- * @event change {object} - When the value of the input changes
14
+ * @event {Event} change - When the value of the input changes
14
15
  *
15
16
  * @slot - The Radios label. Alternatively, you can use the `label` attribute.
16
17
  *
@@ -24,27 +25,24 @@ export declare class SkfCheckbox extends FormBase implements FormFieldBaseProps
24
25
  */
25
26
  private _initiallyChecked;
26
27
  /** If defined, outputs helping hints in console */
27
- debug?: boolean;
28
+ debug: boolean;
28
29
  /** If true, outputs helping hints in console */
29
- get checked(): boolean | undefined;
30
- set checked(value: boolean | undefined);
30
+ get checked(): boolean;
31
+ set checked(value: boolean);
31
32
  /** If true, forces component to invalid state until removed */
32
- customInvalid?: boolean;
33
+ customInvalid: boolean;
33
34
  /** If true and the checkbox is unchecked, the checkbox will appear indeterminate */
34
- indeterminate?: boolean;
35
+ indeterminate: boolean;
35
36
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
36
37
  label?: string;
37
38
  /** If defined, adds name to the input-element */
38
39
  name?: string;
39
40
  /** If defined, renders an alternative A11y text for the asterisk */
40
41
  requiredLabel?: string;
41
- /**
42
- * If defined, styles checkbox using provided severity
43
- * @type { "alert" | "success" | "info" | "warning" }
44
- */
45
- severity?: FormFieldBaseProps['severity'];
42
+ /** If defined, styles checkbox using provided severity */
43
+ severity?: FormFieldSeverity;
46
44
  /** If true, displays valid state after interaction */
47
- showValid?: boolean;
45
+ showValid: boolean;
48
46
  /** Size of the checkbox */
49
47
  size: 'sm' | 'md';
50
48
  /** The current value of the input field */
@@ -54,9 +52,13 @@ export declare class SkfCheckbox extends FormBase implements FormFieldBaseProps
54
52
  private _invalid;
55
53
  /** @internal */
56
54
  private $input?;
55
+ /** @internal */
57
56
  handleCheckedChange(): void;
57
+ /** @internal */
58
58
  handleInvalidChange(): void;
59
+ /** @internal */
59
60
  handleDebugInvalid(): void;
61
+ /** @internal */
60
62
  handleCustomInvalidChange(): void;
61
63
  protected firstUpdated(): void;
62
64
  /** @internal */
@@ -2,11 +2,11 @@ import "../icon/icon.js";
2
2
  import { FormBase as p } from "../../internal/components/formBase.js";
3
3
  import { watch as h } from "../../internal/helpers/watch.js";
4
4
  import { Asterisk as v } from "../../internal/templates/asterisk.js";
5
- import m from "../../styles/component.styles.js";
5
+ import { componentStyles as m } from "../../styles/component.styles.js";
6
6
  import { html as c, nothing as f } from "lit";
7
7
  import { property as r, state as y, query as g } from "lit/decorators.js";
8
8
  import { ifDefined as _ } from "lit/directives/if-defined.js";
9
- import b from "./checkbox.styles.js";
9
+ import { styles as b } from "./checkbox.styles.js";
10
10
  var k = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, i = (u, t, s, a) => {
11
11
  for (var l = a > 1 ? void 0 : a ? $(t, s) : t, n = u.length - 1, o; n >= 0; n--)
12
12
  (o = u[n]) && (l = (a ? o(t, s, l) : o(l)) || l);
@@ -14,7 +14,7 @@ var k = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, i = (u, t, s
14
14
  };
15
15
  const d = class d extends p {
16
16
  constructor() {
17
- super(...arguments), this._initiallyChecked = !1, this.size = "md", this.value = "", this._invalid = !1, this._resetValue = (t) => {
17
+ super(...arguments), this._initiallyChecked = !1, this.debug = !1, this.customInvalid = !1, this.indeterminate = !1, this.showValid = !1, this.size = "md", this.value = "", this._invalid = !1, this._resetValue = (t) => {
18
18
  t.stopPropagation(), this.checked = this._initiallyChecked, this.$input && (this.$input.checked = !!this._initiallyChecked), this.setFormValue(this.checked ? this.value : null);
19
19
  }, this._renderIcon = (t) => c`
20
20
  <skf-icon color="inverse" name=${t} size=${this.size === "sm" ? "sm" : "md"}></skf-icon>
@@ -50,7 +50,7 @@ const d = class d extends p {
50
50
  var t;
51
51
  (t = this.$input) == null || t.addEventListener("change", (s) => {
52
52
  var a;
53
- s.stopPropagation(), this.pristine = !1, this.checked = (a = this.$input) == null ? void 0 : a.checked, this._validateInput(), this.checked ? (this.indeterminate = !1, this.setFormValue(this.value)) : this.setFormValue(null), this.emitEvent("change");
53
+ s.stopPropagation(), this.pristine = !1, this.checked = ((a = this.$input) == null ? void 0 : a.checked) ?? !1, this._validateInput(), this.checked ? (this.indeterminate = !1, this.setFormValue(this.value)) : this.setFormValue(null), this.emitEvent("change");
54
54
  }), this.addEventListener("invalid", (s) => {
55
55
  this.pristine = !1, this._invalid = !0, this.customErrorDisplay && s.preventDefault();
56
56
  }), this._initiallyChecked = this.checked, this.addEventListener("reset", this._resetValue), this._validateInput();
@@ -77,7 +77,7 @@ const d = class d extends p {
77
77
  ?checked=${this.checked}
78
78
  ?disabled=${this.disabled}
79
79
  ?required=${this.required}
80
- .indeterminate=${this.indeterminate ?? !1}
80
+ .indeterminate=${this.indeterminate}
81
81
  aria-invalid=${!!this._invalid}
82
82
  name=${_(this.name)}
83
83
  type="checkbox"
@@ -1,2 +1 @@
1
- declare const _default: import("lit").CSSResult[];
2
- export default _default;
1
+ export declare const styles: import("lit").CSSResult[];