fluent-svelte-extra 1.9.5 → 1.9.6

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 (93) hide show
  1. package/Acrylic/AcrylicSurface.scss +6 -6
  2. package/Acrylic/AcrylicSurface.svelte +26 -26
  3. package/AutoSuggestBox/AutoSuggestBox.scss +44 -44
  4. package/AutoSuggestBox/AutoSuggestBox.svelte +85 -85
  5. package/Button/Button.scss +94 -94
  6. package/Button/Button.svelte +25 -25
  7. package/CalendarDatePicker/CalendarDatePicker.scss +15 -15
  8. package/CalendarDatePicker/CalendarDatePicker.svelte +45 -45
  9. package/CalendarView/CalendarView.scss +156 -156
  10. package/CalendarView/CalendarView.svelte +269 -269
  11. package/CalendarView/CalendarViewItem.scss +130 -130
  12. package/CalendarView/CalendarViewItem.svelte +23 -23
  13. package/Checkbox/Checkbox.scss +117 -117
  14. package/Checkbox/Checkbox.svelte +52 -52
  15. package/ComboBox/ComboBox.scss +152 -152
  16. package/ComboBox/ComboBox.svelte +155 -155
  17. package/ComboBox/ComboBoxItem.scss +80 -80
  18. package/ComboBox/ComboBoxItem.svelte +17 -17
  19. package/ContentDialog/ContentDialog.scss +98 -98
  20. package/ContentDialog/ContentDialog.svelte +76 -76
  21. package/ContextMenu/ContextMenu.scss +11 -11
  22. package/ContextMenu/ContextMenu.svelte +37 -37
  23. package/ExpandMenu/ExpandMenu.svelte +9 -9
  24. package/Expander/Expander.scss +136 -136
  25. package/Expander/Expander.svelte +95 -95
  26. package/Flipper/Flipper.svelte +37 -37
  27. package/Flyout/FlyoutSurface.scss +14 -14
  28. package/Flyout/FlyoutSurface.svelte +7 -7
  29. package/Flyout/FlyoutWrapper.scss +86 -86
  30. package/Flyout/FlyoutWrapper.svelte +60 -60
  31. package/GridView/GridViewItem.scss +20 -20
  32. package/GridView/GridViewItem.svelte +33 -25
  33. package/IconButton/IconButton.scss +32 -32
  34. package/IconButton/IconButton.svelte +28 -28
  35. package/InfoBadge/InfoBadge.scss +39 -39
  36. package/InfoBadge/InfoBadge.svelte +59 -59
  37. package/InfoBar/InfoBar.scss +122 -122
  38. package/InfoBar/InfoBar.svelte +76 -76
  39. package/ListItem/ListItem.scss +76 -76
  40. package/ListItem/ListItem.svelte +49 -49
  41. package/MenuBar/MenuBar.scss +10 -10
  42. package/MenuBar/MenuBar.svelte +7 -7
  43. package/MenuBar/MenuBarItem.scss +38 -38
  44. package/MenuBar/MenuBarItem.svelte +38 -38
  45. package/MenuFlyout/MenuFlyoutDivider.scss +7 -7
  46. package/MenuFlyout/MenuFlyoutDivider.svelte +5 -5
  47. package/MenuFlyout/MenuFlyoutItem.scss +146 -146
  48. package/MenuFlyout/MenuFlyoutItem.svelte +136 -136
  49. package/MenuFlyout/MenuFlyoutSurface.scss +79 -79
  50. package/MenuFlyout/MenuFlyoutSurface.svelte +22 -22
  51. package/MenuFlyout/MenuFlyoutWrapper.scss +64 -64
  52. package/MenuFlyout/MenuFlyoutWrapper.svelte +37 -37
  53. package/NavigationView/NavigationView.svelte +29 -29
  54. package/NumberBox/NumberBox.scss +31 -31
  55. package/NumberBox/NumberBox.svelte +166 -166
  56. package/PersonPicture/PersonPicture.scss +35 -35
  57. package/PersonPicture/PersonPicture.svelte +37 -37
  58. package/ProgressBar/ProgressBar.scss +83 -83
  59. package/ProgressBar/ProgressBar.svelte +36 -36
  60. package/ProgressRing/ProgressRing.scss +37 -37
  61. package/ProgressRing/ProgressRing.svelte +37 -37
  62. package/README.md +19 -19
  63. package/RadioButton/RadioButton.scss +114 -114
  64. package/RadioButton/RadioButton.svelte +38 -38
  65. package/RangeSlider/RangeSlider.svelte +26 -26
  66. package/ScrollView/ScrollView.svelte +3 -3
  67. package/Slider/Slider.scss +281 -281
  68. package/Slider/Slider.svelte +121 -121
  69. package/TeachingTip/TeachingTipSurface.scss +14 -14
  70. package/TeachingTip/TeachingTipSurface.svelte +7 -7
  71. package/TeachingTip/TeachingTipWrapper.scss +181 -79
  72. package/TeachingTip/TeachingTipWrapper.svelte +196 -73
  73. package/TeachingTip/TeachingTipWrapper.svelte.d.ts +6 -0
  74. package/TextArea/TextArea.scss +115 -115
  75. package/TextArea/TextArea.svelte +65 -65
  76. package/TextBlock/TextBlock.scss +66 -66
  77. package/TextBlock/TextBlock.svelte +12 -12
  78. package/TextBox/TextBox.scss +108 -108
  79. package/TextBox/TextBox.svelte +121 -121
  80. package/TextBox/TextBox.svelte.d.ts +7 -0
  81. package/TextBox/TextBoxButton.scss +34 -34
  82. package/TextBox/TextBoxButton.svelte +13 -13
  83. package/ToggleSwitch/ToggleSwitch.scss +118 -118
  84. package/ToggleSwitch/ToggleSwitch.svelte +29 -29
  85. package/Tooltip/TooltipSurface.scss +16 -16
  86. package/Tooltip/TooltipSurface.svelte +13 -13
  87. package/Tooltip/TooltipWrapper.scss +66 -66
  88. package/Tooltip/TooltipWrapper.svelte +37 -37
  89. package/_mixins.scss +130 -130
  90. package/package.json +1 -1
  91. package/svelte-jsx.d.ts +14 -14
  92. package/switchable.css +401 -401
  93. package/theme.css +744 -744
@@ -26,48 +26,48 @@ function handleKeyDown(event) {
26
26
  if (event.key === "Escape")
27
27
  open = false;
28
28
  }
29
- </script>
30
-
31
- <Flyout
32
- class="calendar-date-picker-container"
33
- bind:open
34
- {closable}
35
- {placement}
36
- {alignment}
37
- {offset}
38
- {trapFocus}
39
- >
40
- <Button class="calendar-date-picker-button" {disabled}>
41
- <span
42
- class="calendar-date-picker-label"
43
- class:disabled
44
- class:placeholder={typeof value === "undefined" || value === null}
45
- >
46
- {value?.toLocaleDateString(locale) ?? placeholder}
47
- </span>
48
- <svg
49
- class="calendar-date-picker-icon"
50
- width="12"
51
- height="12"
52
- viewBox="0 0 11 12"
53
- fill="none"
54
- xmlns="http://www.w3.org/2000/svg"
55
- >
56
- <path
57
- d="M9.2793 0.75C9.47461 0.75 9.66016 0.791016 9.83594 0.873047C10.0156 0.951172 10.1719 1.05859 10.3047 1.19531C10.4414 1.32813 10.5488 1.48437 10.627 1.66406C10.709 1.83984 10.75 2.02539 10.75 2.2207V9.7793C10.75 9.97461 10.709 10.1621 10.627 10.3418C10.5488 10.5176 10.4414 10.6738 10.3047 10.8105C10.1719 10.9434 10.0156 11.0508 9.83594 11.1328C9.66016 11.2109 9.47461 11.25 9.2793 11.25H1.7207C1.52539 11.25 1.33789 11.2109 1.1582 11.1328C0.982422 11.0508 0.826172 10.9434 0.689453 10.8105C0.556641 10.6738 0.449219 10.5176 0.367188 10.3418C0.289062 10.1621 0.25 9.97461 0.25 9.7793V2.2207C0.25 2.02539 0.289062 1.83984 0.367188 1.66406C0.449219 1.48437 0.556641 1.32813 0.689453 1.19531C0.826172 1.05859 0.982422 0.951172 1.1582 0.873047C1.33789 0.791016 1.52539 0.75 1.7207 0.75H9.2793ZM1.75 1.5C1.64453 1.5 1.54688 1.51953 1.45703 1.55859C1.36719 1.59766 1.28711 1.65234 1.2168 1.72266C1.15039 1.78906 1.09766 1.86719 1.05859 1.95703C1.01953 2.04688 1 2.14453 1 2.25V3H10V2.25C10 2.14844 9.98047 2.05273 9.94141 1.96289C9.90234 1.86914 9.84766 1.78906 9.77734 1.72266C9.71094 1.65234 9.63086 1.59766 9.53711 1.55859C9.44727 1.51953 9.35156 1.5 9.25 1.5H1.75ZM9.25 10.5C9.35547 10.5 9.45312 10.4805 9.54297 10.4414C9.63281 10.4023 9.71094 10.3496 9.77734 10.2832C9.84766 10.2129 9.90234 10.1328 9.94141 10.043C9.98047 9.95312 10 9.85547 10 9.75V3.75H1V9.75C1 9.85547 1.01953 9.95508 1.05859 10.0488C1.09766 10.1387 1.15039 10.2168 1.2168 10.2832C1.2832 10.3496 1.36133 10.4023 1.45117 10.4414C1.54492 10.4805 1.64453 10.5 1.75 10.5H9.25ZM2.5 6C2.5 5.89453 2.51953 5.79688 2.55859 5.70703C2.59766 5.61719 2.65039 5.53906 2.7168 5.47266C2.78711 5.40234 2.86719 5.34766 2.95703 5.30859C3.05078 5.26953 3.15039 5.25 3.25586 5.25C3.36133 5.25 3.45898 5.26953 3.54883 5.30859C3.63867 5.34766 3.7168 5.40039 3.7832 5.4668C3.84961 5.5332 3.90234 5.61133 3.94141 5.70117C3.98047 5.79102 4 5.88867 4 5.99414C4 6.09961 3.98047 6.19922 3.94141 6.29297C3.90234 6.38281 3.84766 6.46289 3.77734 6.5332C3.71094 6.59961 3.63281 6.65234 3.54297 6.69141C3.45312 6.73047 3.35547 6.75 3.25 6.75C3.14453 6.75 3.04492 6.73047 2.95117 6.69141C2.86133 6.65234 2.7832 6.59961 2.7168 6.5332C2.65039 6.4668 2.59766 6.38867 2.55859 6.29883C2.51953 6.20508 2.5 6.10547 2.5 6ZM4.75 6C4.75 5.89453 4.76953 5.79688 4.80859 5.70703C4.84766 5.61719 4.90039 5.53906 4.9668 5.47266C5.03711 5.40234 5.11719 5.34766 5.20703 5.30859C5.30078 5.26953 5.40039 5.25 5.50586 5.25C5.61133 5.25 5.70898 5.26953 5.79883 5.30859C5.88867 5.34766 5.9668 5.40039 6.0332 5.4668C6.09961 5.5332 6.15234 5.61133 6.19141 5.70117C6.23047 5.79102 6.25 5.88867 6.25 5.99414C6.25 6.09961 6.23047 6.19922 6.19141 6.29297C6.15234 6.38281 6.09766 6.46289 6.02734 6.5332C5.96094 6.59961 5.88281 6.65234 5.79297 6.69141C5.70312 6.73047 5.60547 6.75 5.5 6.75C5.39453 6.75 5.29492 6.73047 5.20117 6.69141C5.11133 6.65234 5.0332 6.59961 4.9668 6.5332C4.90039 6.4668 4.84766 6.38867 4.80859 6.29883C4.76953 6.20508 4.75 6.10547 4.75 6ZM8.5 5.99414C8.5 6.09961 8.48047 6.19922 8.44141 6.29297C8.40234 6.38281 8.34766 6.46289 8.27734 6.5332C8.21094 6.59961 8.13281 6.65234 8.04297 6.69141C7.95312 6.73047 7.85547 6.75 7.75 6.75C7.64453 6.75 7.54492 6.73047 7.45117 6.69141C7.36133 6.65234 7.2832 6.59961 7.2168 6.5332C7.15039 6.4668 7.09766 6.38867 7.05859 6.29883C7.01953 6.20508 7 6.10547 7 6C7 5.89453 7.01953 5.79688 7.05859 5.70703C7.09766 5.61719 7.15039 5.53906 7.2168 5.47266C7.28711 5.40234 7.36719 5.34766 7.45703 5.30859C7.55078 5.26953 7.65039 5.25 7.75586 5.25C7.86133 5.25 7.95898 5.26953 8.04883 5.30859C8.13867 5.34766 8.2168 5.40039 8.2832 5.4668C8.34961 5.5332 8.40234 5.61133 8.44141 5.70117C8.48047 5.79102 8.5 5.88867 8.5 5.99414ZM4 8.25C4 8.35547 3.98047 8.45312 3.94141 8.54297C3.90234 8.63281 3.84766 8.71289 3.77734 8.7832C3.71094 8.84961 3.63086 8.90234 3.53711 8.94141C3.44727 8.98047 3.34961 9 3.24414 9C3.13867 9 3.04102 8.98047 2.95117 8.94141C2.86133 8.90234 2.7832 8.84961 2.7168 8.7832C2.65039 8.7168 2.59766 8.63867 2.55859 8.54883C2.51953 8.45898 2.5 8.36133 2.5 8.25586C2.5 8.15039 2.51953 8.05273 2.55859 7.96289C2.59766 7.86914 2.65039 7.78906 2.7168 7.72266C2.78711 7.65234 2.86719 7.59766 2.95703 7.55859C3.04688 7.51953 3.14453 7.5 3.25 7.5C3.35547 7.5 3.45312 7.51953 3.54297 7.55859C3.63672 7.59766 3.7168 7.65039 3.7832 7.7168C3.84961 7.7832 3.90234 7.86328 3.94141 7.95703C3.98047 8.04688 4 8.14453 4 8.25ZM6.25 8.25C6.25 8.35547 6.23047 8.45312 6.19141 8.54297C6.15234 8.63281 6.09766 8.71289 6.02734 8.7832C5.96094 8.84961 5.88086 8.90234 5.78711 8.94141C5.69727 8.98047 5.59961 9 5.49414 9C5.38867 9 5.29102 8.98047 5.20117 8.94141C5.11133 8.90234 5.0332 8.84961 4.9668 8.7832C4.90039 8.7168 4.84766 8.63867 4.80859 8.54883C4.76953 8.45898 4.75 8.36133 4.75 8.25586C4.75 8.15039 4.76953 8.05273 4.80859 7.96289C4.84766 7.86914 4.90039 7.78906 4.9668 7.72266C5.03711 7.65234 5.11719 7.59766 5.20703 7.55859C5.29688 7.51953 5.39453 7.5 5.5 7.5C5.60547 7.5 5.70312 7.51953 5.79297 7.55859C5.88672 7.59766 5.9668 7.65039 6.0332 7.7168C6.09961 7.7832 6.15234 7.86328 6.19141 7.95703C6.23047 8.04688 6.25 8.14453 6.25 8.25Z"
58
- />
59
- </svg>
60
- </Button>
61
- <CalendarView
62
- slot="override"
63
- class="calendar-date-picker-calendar"
64
- multiple={false}
65
- __floating
66
- on:keydown={handleKeyDown}
67
- on:change={() => (open = false)}
68
- bind:value
69
- {...$$restProps}
70
- />
71
- </Flyout>
72
-
73
- <style >.calendar-date-picker-label{-webkit-padding-end:2px;padding-inline-end:2px}.calendar-date-picker-label.placeholder:not(.disabled){color:var(--fds-text-secondary)}.calendar-date-picker-icon{fill:currentColor;-webkit-margin-start:8px;block-size:auto;color:currentColor;inline-size:12px;margin-inline-start:8px}</style>
29
+ </script>
30
+
31
+ <Flyout
32
+ class="calendar-date-picker-container"
33
+ bind:open
34
+ {closable}
35
+ {placement}
36
+ {alignment}
37
+ {offset}
38
+ {trapFocus}
39
+ >
40
+ <Button class="calendar-date-picker-button" {disabled}>
41
+ <span
42
+ class="calendar-date-picker-label"
43
+ class:disabled
44
+ class:placeholder={typeof value === "undefined" || value === null}
45
+ >
46
+ {value?.toLocaleDateString(locale) ?? placeholder}
47
+ </span>
48
+ <svg
49
+ class="calendar-date-picker-icon"
50
+ width="12"
51
+ height="12"
52
+ viewBox="0 0 11 12"
53
+ fill="none"
54
+ xmlns="http://www.w3.org/2000/svg"
55
+ >
56
+ <path
57
+ d="M9.2793 0.75C9.47461 0.75 9.66016 0.791016 9.83594 0.873047C10.0156 0.951172 10.1719 1.05859 10.3047 1.19531C10.4414 1.32813 10.5488 1.48437 10.627 1.66406C10.709 1.83984 10.75 2.02539 10.75 2.2207V9.7793C10.75 9.97461 10.709 10.1621 10.627 10.3418C10.5488 10.5176 10.4414 10.6738 10.3047 10.8105C10.1719 10.9434 10.0156 11.0508 9.83594 11.1328C9.66016 11.2109 9.47461 11.25 9.2793 11.25H1.7207C1.52539 11.25 1.33789 11.2109 1.1582 11.1328C0.982422 11.0508 0.826172 10.9434 0.689453 10.8105C0.556641 10.6738 0.449219 10.5176 0.367188 10.3418C0.289062 10.1621 0.25 9.97461 0.25 9.7793V2.2207C0.25 2.02539 0.289062 1.83984 0.367188 1.66406C0.449219 1.48437 0.556641 1.32813 0.689453 1.19531C0.826172 1.05859 0.982422 0.951172 1.1582 0.873047C1.33789 0.791016 1.52539 0.75 1.7207 0.75H9.2793ZM1.75 1.5C1.64453 1.5 1.54688 1.51953 1.45703 1.55859C1.36719 1.59766 1.28711 1.65234 1.2168 1.72266C1.15039 1.78906 1.09766 1.86719 1.05859 1.95703C1.01953 2.04688 1 2.14453 1 2.25V3H10V2.25C10 2.14844 9.98047 2.05273 9.94141 1.96289C9.90234 1.86914 9.84766 1.78906 9.77734 1.72266C9.71094 1.65234 9.63086 1.59766 9.53711 1.55859C9.44727 1.51953 9.35156 1.5 9.25 1.5H1.75ZM9.25 10.5C9.35547 10.5 9.45312 10.4805 9.54297 10.4414C9.63281 10.4023 9.71094 10.3496 9.77734 10.2832C9.84766 10.2129 9.90234 10.1328 9.94141 10.043C9.98047 9.95312 10 9.85547 10 9.75V3.75H1V9.75C1 9.85547 1.01953 9.95508 1.05859 10.0488C1.09766 10.1387 1.15039 10.2168 1.2168 10.2832C1.2832 10.3496 1.36133 10.4023 1.45117 10.4414C1.54492 10.4805 1.64453 10.5 1.75 10.5H9.25ZM2.5 6C2.5 5.89453 2.51953 5.79688 2.55859 5.70703C2.59766 5.61719 2.65039 5.53906 2.7168 5.47266C2.78711 5.40234 2.86719 5.34766 2.95703 5.30859C3.05078 5.26953 3.15039 5.25 3.25586 5.25C3.36133 5.25 3.45898 5.26953 3.54883 5.30859C3.63867 5.34766 3.7168 5.40039 3.7832 5.4668C3.84961 5.5332 3.90234 5.61133 3.94141 5.70117C3.98047 5.79102 4 5.88867 4 5.99414C4 6.09961 3.98047 6.19922 3.94141 6.29297C3.90234 6.38281 3.84766 6.46289 3.77734 6.5332C3.71094 6.59961 3.63281 6.65234 3.54297 6.69141C3.45312 6.73047 3.35547 6.75 3.25 6.75C3.14453 6.75 3.04492 6.73047 2.95117 6.69141C2.86133 6.65234 2.7832 6.59961 2.7168 6.5332C2.65039 6.4668 2.59766 6.38867 2.55859 6.29883C2.51953 6.20508 2.5 6.10547 2.5 6ZM4.75 6C4.75 5.89453 4.76953 5.79688 4.80859 5.70703C4.84766 5.61719 4.90039 5.53906 4.9668 5.47266C5.03711 5.40234 5.11719 5.34766 5.20703 5.30859C5.30078 5.26953 5.40039 5.25 5.50586 5.25C5.61133 5.25 5.70898 5.26953 5.79883 5.30859C5.88867 5.34766 5.9668 5.40039 6.0332 5.4668C6.09961 5.5332 6.15234 5.61133 6.19141 5.70117C6.23047 5.79102 6.25 5.88867 6.25 5.99414C6.25 6.09961 6.23047 6.19922 6.19141 6.29297C6.15234 6.38281 6.09766 6.46289 6.02734 6.5332C5.96094 6.59961 5.88281 6.65234 5.79297 6.69141C5.70312 6.73047 5.60547 6.75 5.5 6.75C5.39453 6.75 5.29492 6.73047 5.20117 6.69141C5.11133 6.65234 5.0332 6.59961 4.9668 6.5332C4.90039 6.4668 4.84766 6.38867 4.80859 6.29883C4.76953 6.20508 4.75 6.10547 4.75 6ZM8.5 5.99414C8.5 6.09961 8.48047 6.19922 8.44141 6.29297C8.40234 6.38281 8.34766 6.46289 8.27734 6.5332C8.21094 6.59961 8.13281 6.65234 8.04297 6.69141C7.95312 6.73047 7.85547 6.75 7.75 6.75C7.64453 6.75 7.54492 6.73047 7.45117 6.69141C7.36133 6.65234 7.2832 6.59961 7.2168 6.5332C7.15039 6.4668 7.09766 6.38867 7.05859 6.29883C7.01953 6.20508 7 6.10547 7 6C7 5.89453 7.01953 5.79688 7.05859 5.70703C7.09766 5.61719 7.15039 5.53906 7.2168 5.47266C7.28711 5.40234 7.36719 5.34766 7.45703 5.30859C7.55078 5.26953 7.65039 5.25 7.75586 5.25C7.86133 5.25 7.95898 5.26953 8.04883 5.30859C8.13867 5.34766 8.2168 5.40039 8.2832 5.4668C8.34961 5.5332 8.40234 5.61133 8.44141 5.70117C8.48047 5.79102 8.5 5.88867 8.5 5.99414ZM4 8.25C4 8.35547 3.98047 8.45312 3.94141 8.54297C3.90234 8.63281 3.84766 8.71289 3.77734 8.7832C3.71094 8.84961 3.63086 8.90234 3.53711 8.94141C3.44727 8.98047 3.34961 9 3.24414 9C3.13867 9 3.04102 8.98047 2.95117 8.94141C2.86133 8.90234 2.7832 8.84961 2.7168 8.7832C2.65039 8.7168 2.59766 8.63867 2.55859 8.54883C2.51953 8.45898 2.5 8.36133 2.5 8.25586C2.5 8.15039 2.51953 8.05273 2.55859 7.96289C2.59766 7.86914 2.65039 7.78906 2.7168 7.72266C2.78711 7.65234 2.86719 7.59766 2.95703 7.55859C3.04688 7.51953 3.14453 7.5 3.25 7.5C3.35547 7.5 3.45312 7.51953 3.54297 7.55859C3.63672 7.59766 3.7168 7.65039 3.7832 7.7168C3.84961 7.7832 3.90234 7.86328 3.94141 7.95703C3.98047 8.04688 4 8.14453 4 8.25ZM6.25 8.25C6.25 8.35547 6.23047 8.45312 6.19141 8.54297C6.15234 8.63281 6.09766 8.71289 6.02734 8.7832C5.96094 8.84961 5.88086 8.90234 5.78711 8.94141C5.69727 8.98047 5.59961 9 5.49414 9C5.38867 9 5.29102 8.98047 5.20117 8.94141C5.11133 8.90234 5.0332 8.84961 4.9668 8.7832C4.90039 8.7168 4.84766 8.63867 4.80859 8.54883C4.76953 8.45898 4.75 8.36133 4.75 8.25586C4.75 8.15039 4.76953 8.05273 4.80859 7.96289C4.84766 7.86914 4.90039 7.78906 4.9668 7.72266C5.03711 7.65234 5.11719 7.59766 5.20703 7.55859C5.29688 7.51953 5.39453 7.5 5.5 7.5C5.60547 7.5 5.70312 7.51953 5.79297 7.55859C5.88672 7.59766 5.9668 7.65039 6.0332 7.7168C6.09961 7.7832 6.15234 7.86328 6.19141 7.95703C6.23047 8.04688 6.25 8.14453 6.25 8.25Z"
58
+ />
59
+ </svg>
60
+ </Button>
61
+ <CalendarView
62
+ slot="override"
63
+ class="calendar-date-picker-calendar"
64
+ multiple={false}
65
+ __floating
66
+ on:keydown={handleKeyDown}
67
+ on:change={() => (open = false)}
68
+ bind:value
69
+ {...$$restProps}
70
+ />
71
+ </Flyout>
72
+
73
+ <style >.calendar-date-picker-label{-webkit-padding-end:2px;padding-inline-end:2px}.calendar-date-picker-label.placeholder:not(.disabled){color:var(--fds-text-secondary)}.calendar-date-picker-icon{fill:currentColor;-webkit-margin-start:8px;block-size:auto;color:currentColor;inline-size:12px;margin-inline-start:8px}</style>
@@ -1,156 +1,156 @@
1
- @use "../mixins" as *;
2
-
3
- .calendar-view {
4
- @include flex($inline: true, $direction: column);
5
- text-align: start;
6
- inline-size: 300px;
7
- block-size: 347px;
8
- position: relative;
9
- user-select: none;
10
- color: var(--text-primary);
11
- background-clip: padding-box;
12
- background-color: var(--fds-solid-background-quarternary);
13
- border-radius: var(--control-corner-radius);
14
- border: 1px solid var(--surface-stroke-flyout);
15
- font-family: var(--font-family-text);
16
- &.floating {
17
- border-radius: var(--overlay-corner-radius);
18
- box-shadow: var(--flyout-shadow);
19
- }
20
- &-header,
21
- &-pagination-controls {
22
- @include flex($align: center);
23
- }
24
- &-pagination-controls button {
25
- padding: 0;
26
- inline-size: 30px;
27
- margin-inline-start: 4px;
28
- }
29
- &-header {
30
- box-sizing: border-box;
31
- border-block-end: 1px solid var(--card-stroke-default);
32
- inline-size: 100%;
33
- padding: 7px;
34
- button {
35
- @include flex($align: center, $justify: center);
36
- border: none;
37
- outline: none;
38
- padding: 0;
39
- min-block-size: 32px;
40
- color: var(--text-primary);
41
- background-color: var(--subtle-fill-transparent);
42
- border-radius: var(--control-corner-radius);
43
- line-height: 20px;
44
- font: {
45
- size: 14px;
46
- weight: 600;
47
- family: var(--font-family-text);
48
- }
49
- &:focus-visible {
50
- box-shadow: var(--focus-stroke);
51
- }
52
- &:hover {
53
- background-color: var(--subtle-fill-secondary);
54
- }
55
- &:active {
56
- background-color: var(--subtle-fill-tertiary);
57
- color: var(--text-secondary);
58
- }
59
- &:disabled {
60
- background-color: var(--sutble-fill-disabled);
61
- color: var(--text-disabled);
62
- svg {
63
- color: var(--control-strong-fill-disabled);
64
- }
65
- }
66
- svg {
67
- @include icon($size: 16px);
68
- color: var(--control-strong-fill-default);
69
- }
70
- }
71
- &-text {
72
- flex: 1 1 auto;
73
- button {
74
- inline-size: 100%;
75
- padding-inline: 9px;
76
- justify-content: flex-start;
77
- flex: 1 1 auto;
78
- }
79
- }
80
- }
81
- &-table {
82
- inset: 0;
83
- display: block;
84
- overflow: hidden;
85
- position: absolute;
86
- box-sizing: border-box;
87
- inline-size: calc(100% - 6px);
88
- block-size: calc(100% - 6px);
89
- margin: 3px;
90
- font-size: 14px;
91
- &-wrapper {
92
- inline-size: 298px;
93
- block-size: 298px;
94
- position: relative;
95
- contain: layout;
96
- overflow: hidden;
97
- background-color: var(--layer-on-acrylic-background-default);
98
- }
99
- &.view- {
100
- &months,
101
- &years {
102
- margin: 11px;
103
- inline-size: calc(100% - 22px);
104
- block-size: calc(100% - 22px);
105
- tr {
106
- grid-template-columns: repeat(4, 1fr);
107
- grid-gap: calc(52px / 3);
108
- margin-block-end: calc(52px / 3);
109
- }
110
- }
111
- }
112
- td,
113
- th {
114
- padding: 0;
115
- }
116
- th {
117
- @include flex($align: center, $justify: center);
118
- block-size: 40px;
119
- text-align: center;
120
- font: {
121
- size: 13px;
122
- weight: 600;
123
- }
124
- }
125
- thead,
126
- tbody {
127
- inline-size: 100%;
128
- display: flex;
129
- flex-direction: column;
130
- }
131
- thead tr,
132
- tbody {
133
- background-color: var(--fds-solid-background-quarternary);
134
- box-shadow: inset 0 0 0 100vmax var(--fds-layer-on-acrylic-background-default);
135
- }
136
- thead {
137
- position: relative;
138
- z-index: 1;
139
- }
140
- tbody {
141
- position: absolute;
142
- inset-inline-start: 0;
143
- inset-block-end: 0;
144
- tr:last-child {
145
- margin-block-end: 0;
146
- }
147
- }
148
- tr {
149
- display: grid;
150
- inline-size: 100%;
151
- grid-template-columns: repeat(7, 1fr);
152
- grid-gap: 2px;
153
- margin-block-end: 2px;
154
- }
155
- }
156
- }
1
+ @use "../mixins" as *;
2
+
3
+ .calendar-view {
4
+ @include flex($inline: true, $direction: column);
5
+ text-align: start;
6
+ inline-size: 300px;
7
+ block-size: 347px;
8
+ position: relative;
9
+ user-select: none;
10
+ color: var(--text-primary);
11
+ background-clip: padding-box;
12
+ background-color: var(--fds-solid-background-quarternary);
13
+ border-radius: var(--control-corner-radius);
14
+ border: 1px solid var(--surface-stroke-flyout);
15
+ font-family: var(--font-family-text);
16
+ &.floating {
17
+ border-radius: var(--overlay-corner-radius);
18
+ box-shadow: var(--flyout-shadow);
19
+ }
20
+ &-header,
21
+ &-pagination-controls {
22
+ @include flex($align: center);
23
+ }
24
+ &-pagination-controls button {
25
+ padding: 0;
26
+ inline-size: 30px;
27
+ margin-inline-start: 4px;
28
+ }
29
+ &-header {
30
+ box-sizing: border-box;
31
+ border-block-end: 1px solid var(--card-stroke-default);
32
+ inline-size: 100%;
33
+ padding: 7px;
34
+ button {
35
+ @include flex($align: center, $justify: center);
36
+ border: none;
37
+ outline: none;
38
+ padding: 0;
39
+ min-block-size: 32px;
40
+ color: var(--text-primary);
41
+ background-color: var(--subtle-fill-transparent);
42
+ border-radius: var(--control-corner-radius);
43
+ line-height: 20px;
44
+ font: {
45
+ size: 14px;
46
+ weight: 600;
47
+ family: var(--font-family-text);
48
+ }
49
+ &:focus-visible {
50
+ box-shadow: var(--focus-stroke);
51
+ }
52
+ &:hover {
53
+ background-color: var(--subtle-fill-secondary);
54
+ }
55
+ &:active {
56
+ background-color: var(--subtle-fill-tertiary);
57
+ color: var(--text-secondary);
58
+ }
59
+ &:disabled {
60
+ background-color: var(--sutble-fill-disabled);
61
+ color: var(--text-disabled);
62
+ svg {
63
+ color: var(--control-strong-fill-disabled);
64
+ }
65
+ }
66
+ svg {
67
+ @include icon($size: 16px);
68
+ color: var(--control-strong-fill-default);
69
+ }
70
+ }
71
+ &-text {
72
+ flex: 1 1 auto;
73
+ button {
74
+ inline-size: 100%;
75
+ padding-inline: 9px;
76
+ justify-content: flex-start;
77
+ flex: 1 1 auto;
78
+ }
79
+ }
80
+ }
81
+ &-table {
82
+ inset: 0;
83
+ display: block;
84
+ overflow: hidden;
85
+ position: absolute;
86
+ box-sizing: border-box;
87
+ inline-size: calc(100% - 6px);
88
+ block-size: calc(100% - 6px);
89
+ margin: 3px;
90
+ font-size: 14px;
91
+ &-wrapper {
92
+ inline-size: 298px;
93
+ block-size: 298px;
94
+ position: relative;
95
+ contain: layout;
96
+ overflow: hidden;
97
+ background-color: var(--layer-on-acrylic-background-default);
98
+ }
99
+ &.view- {
100
+ &months,
101
+ &years {
102
+ margin: 11px;
103
+ inline-size: calc(100% - 22px);
104
+ block-size: calc(100% - 22px);
105
+ tr {
106
+ grid-template-columns: repeat(4, 1fr);
107
+ grid-gap: calc(52px / 3);
108
+ margin-block-end: calc(52px / 3);
109
+ }
110
+ }
111
+ }
112
+ td,
113
+ th {
114
+ padding: 0;
115
+ }
116
+ th {
117
+ @include flex($align: center, $justify: center);
118
+ block-size: 40px;
119
+ text-align: center;
120
+ font: {
121
+ size: 13px;
122
+ weight: 600;
123
+ }
124
+ }
125
+ thead,
126
+ tbody {
127
+ inline-size: 100%;
128
+ display: flex;
129
+ flex-direction: column;
130
+ }
131
+ thead tr,
132
+ tbody {
133
+ background-color: var(--fds-solid-background-quarternary);
134
+ box-shadow: inset 0 0 0 100vmax var(--fds-layer-on-acrylic-background-default);
135
+ }
136
+ thead {
137
+ position: relative;
138
+ z-index: 1;
139
+ }
140
+ tbody {
141
+ position: absolute;
142
+ inset-inline-start: 0;
143
+ inset-block-end: 0;
144
+ tr:last-child {
145
+ margin-block-end: 0;
146
+ }
147
+ }
148
+ tr {
149
+ display: grid;
150
+ inline-size: 100%;
151
+ grid-template-columns: repeat(7, 1fr);
152
+ grid-gap: 2px;
153
+ margin-block-end: 2px;
154
+ }
155
+ }
156
+ }