@govtechsg/sgds-web-component 3.19.0-rc.0 → 3.19.0-rc.3
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/base/card.js +1 -1
- package/base/option.js +1 -1
- package/components/Accordion/accordion-item.js +1 -1
- package/components/Accordion/index.umd.min.js +1 -1
- package/components/Alert/index.umd.min.js +8 -8
- package/components/Alert/index.umd.min.js.map +1 -1
- package/components/Badge/index.umd.min.js +9 -9
- package/components/Badge/index.umd.min.js.map +1 -1
- package/components/Breadcrumb/index.umd.min.js +2 -2
- package/components/Card/index.umd.min.js +1 -1
- package/components/Checkbox/checkbox-group.js +1 -1
- package/components/Checkbox/checkbox.js +1 -1
- package/components/Checkbox/index.umd.min.js +2238 -32
- package/components/Checkbox/index.umd.min.js.map +1 -1
- package/components/Checkbox/sgds-checkbox-group.d.ts +5 -0
- package/components/Checkbox/sgds-checkbox-group.js +6 -6
- package/components/Checkbox/sgds-checkbox-group.js.map +1 -1
- package/components/Checkbox/sgds-checkbox.d.ts +5 -0
- package/components/Checkbox/sgds-checkbox.js +6 -6
- package/components/Checkbox/sgds-checkbox.js.map +1 -1
- package/components/CloseButton/close-button.js +1 -1
- package/components/CloseButton/index.umd.min.js +6 -6
- package/components/CloseButton/index.umd.min.js.map +1 -1
- package/components/CloseButton/sgds-close-button.js +1 -1
- package/components/CloseButton/sgds-close-button.js.map +1 -1
- package/components/ComboBox/index.umd.min.js +7 -12
- package/components/ComboBox/index.umd.min.js.map +1 -1
- package/components/Datepicker/datepicker-calendar2.js +1 -1
- package/components/Datepicker/index.umd.min.js +2 -2
- package/components/Datepicker/index.umd.min.js.map +1 -1
- package/components/Drawer/index.umd.min.js +8 -8
- package/components/Drawer/index.umd.min.js.map +1 -1
- package/components/Dropdown/dropdown-item.js +1 -1
- package/components/Dropdown/index.umd.min.js +1 -1
- package/components/FileUpload/index.umd.min.js +8 -8
- package/components/FileUpload/index.umd.min.js.map +1 -1
- package/components/Footer/index.umd.min.js +1 -1
- package/components/IconCard/index.umd.min.js +1 -1
- package/components/ImageCard/index.umd.min.js +1 -1
- package/components/Input/index.umd.min.js +1 -1
- package/components/Input/index.umd.min.js.map +1 -1
- package/components/Link/index.umd.min.js +1 -1
- package/components/Link/link.js +1 -1
- package/components/Mainnav/index.umd.min.js +3 -3
- package/components/Mainnav/mainnav-dropdown.js +1 -1
- package/components/Mainnav/mainnav-item.js +1 -1
- package/components/Modal/index.umd.min.js +9 -9
- package/components/Modal/index.umd.min.js.map +1 -1
- package/components/OverflowMenu/index.umd.min.js +1 -1
- package/components/Pagination/index.umd.min.js +1 -1
- package/components/Pagination/pagination.js +1 -1
- package/components/QuantityToggle/index.umd.min.js +2 -2
- package/components/QuantityToggle/index.umd.min.js.map +1 -1
- package/components/Radio/index.umd.min.js +2 -2
- package/components/Radio/index.umd.min.js.map +1 -1
- package/components/Radio/radio-group.js +1 -1
- package/components/Select/index.umd.min.js +2 -2
- package/components/Select/index.umd.min.js.map +1 -1
- package/components/Sidenav/index.umd.min.js +2 -2
- package/components/Sidenav/sidenav-item.js +1 -1
- package/components/Sidenav/sidenav-link.js +1 -1
- package/components/Stepper/index.umd.min.js +26 -26
- package/components/Stepper/index.umd.min.js.map +1 -1
- package/components/Stepper/sgds-stepper.d.ts +10 -0
- package/components/Stepper/sgds-stepper.js +46 -24
- package/components/Stepper/sgds-stepper.js.map +1 -1
- package/components/Stepper/step.js +1 -1
- package/components/Subnav/index.umd.min.js +1 -1
- package/components/Subnav/subnav-item.js +1 -1
- package/components/Switch/index.umd.min.js +1 -1
- package/components/Switch/switch.js +1 -1
- package/components/SystemBanner/index.umd.min.js +2 -2
- package/components/SystemBanner/index.umd.min.js.map +1 -1
- package/components/Tab/index.umd.min.js +1 -1
- package/components/Tab/tab.js +1 -1
- package/components/Table/index.umd.min.js +1 -1
- package/components/Table/index.umd.min.js.map +1 -1
- package/components/Table/table.js +1 -1
- package/components/Textarea/index.umd.min.js +10 -10
- package/components/Textarea/index.umd.min.js.map +1 -1
- package/components/Textarea/textarea.js +1 -1
- package/components/ThumbnailCard/index.umd.min.js +1 -1
- package/components/Toast/index.umd.min.js +5 -5
- package/components/Toast/index.umd.min.js.map +1 -1
- package/components/index.umd.min.js +97 -107
- package/components/index.umd.min.js.map +1 -1
- package/css/fouc.css +1 -1
- package/custom-elements.json +636 -629
- package/index.umd.min.js +43 -53
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/accordion/index.d.ts +3 -1
- package/react/accordion-item/index.d.ts +3 -1
- package/react/alert/index.d.ts +3 -1
- package/react/alert-link/index.d.ts +3 -1
- package/react/badge/index.d.ts +3 -1
- package/react/base/card.cjs.js +1 -1
- package/react/base/card.js +1 -1
- package/react/base/option.cjs.js +1 -1
- package/react/base/option.js +1 -1
- package/react/breadcrumb/index.d.ts +3 -1
- package/react/breadcrumb-item/index.d.ts +3 -1
- package/react/button/index.d.ts +3 -1
- package/react/card/index.d.ts +3 -1
- package/react/checkbox/index.d.ts +3 -1
- package/react/checkbox-group/index.d.ts +3 -1
- package/react/close-button/index.d.ts +3 -1
- package/react/combo-box/index.d.ts +3 -1
- package/react/combo-box-option/index.d.ts +3 -1
- package/react/components/Accordion/accordion-item.cjs.js +1 -1
- package/react/components/Accordion/accordion-item.js +1 -1
- package/react/components/Checkbox/checkbox-group.cjs.js +1 -1
- package/react/components/Checkbox/checkbox-group.js +1 -1
- package/react/components/Checkbox/checkbox.cjs.js +1 -1
- package/react/components/Checkbox/checkbox.js +1 -1
- package/react/components/Checkbox/sgds-checkbox-group.cjs.js +6 -6
- package/react/components/Checkbox/sgds-checkbox-group.cjs.js.map +1 -1
- package/react/components/Checkbox/sgds-checkbox-group.js +6 -6
- package/react/components/Checkbox/sgds-checkbox-group.js.map +1 -1
- package/react/components/Checkbox/sgds-checkbox.cjs.js +6 -6
- package/react/components/Checkbox/sgds-checkbox.cjs.js.map +1 -1
- package/react/components/Checkbox/sgds-checkbox.js +6 -6
- package/react/components/Checkbox/sgds-checkbox.js.map +1 -1
- package/react/components/CloseButton/close-button.cjs.js +1 -1
- package/react/components/CloseButton/close-button.js +1 -1
- package/react/components/CloseButton/sgds-close-button.cjs.js +1 -1
- package/react/components/CloseButton/sgds-close-button.cjs.js.map +1 -1
- package/react/components/CloseButton/sgds-close-button.js +1 -1
- package/react/components/CloseButton/sgds-close-button.js.map +1 -1
- package/react/components/Datepicker/datepicker-calendar.cjs2.js +1 -1
- package/react/components/Datepicker/datepicker-calendar2.js +1 -1
- package/react/components/Dropdown/dropdown-item.cjs.js +1 -1
- package/react/components/Dropdown/dropdown-item.js +1 -1
- package/react/components/Link/link.cjs.js +1 -1
- package/react/components/Link/link.js +1 -1
- package/react/components/Mainnav/mainnav-dropdown.cjs.js +1 -1
- package/react/components/Mainnav/mainnav-dropdown.js +1 -1
- package/react/components/Mainnav/mainnav-item.cjs.js +1 -1
- package/react/components/Mainnav/mainnav-item.js +1 -1
- package/react/components/Pagination/pagination.cjs.js +1 -1
- package/react/components/Pagination/pagination.js +1 -1
- package/react/components/Radio/radio-group.cjs.js +1 -1
- package/react/components/Radio/radio-group.js +1 -1
- package/react/components/Sidenav/sidenav-item.cjs.js +1 -1
- package/react/components/Sidenav/sidenav-item.js +1 -1
- package/react/components/Sidenav/sidenav-link.cjs.js +1 -1
- package/react/components/Sidenav/sidenav-link.js +1 -1
- package/react/components/Stepper/sgds-stepper.cjs.js +45 -23
- package/react/components/Stepper/sgds-stepper.cjs.js.map +1 -1
- package/react/components/Stepper/sgds-stepper.js +46 -24
- package/react/components/Stepper/sgds-stepper.js.map +1 -1
- package/react/components/Stepper/step.cjs.js +1 -1
- package/react/components/Stepper/step.js +1 -1
- package/react/components/Subnav/subnav-item.cjs.js +1 -1
- package/react/components/Subnav/subnav-item.js +1 -1
- package/react/components/Switch/switch.cjs.js +1 -1
- package/react/components/Switch/switch.js +1 -1
- package/react/components/Tab/tab.cjs.js +1 -1
- package/react/components/Tab/tab.js +1 -1
- package/react/components/Table/table.cjs.js +1 -1
- package/react/components/Table/table.js +1 -1
- package/react/components/Textarea/textarea.cjs.js +1 -1
- package/react/components/Textarea/textarea.js +1 -1
- package/react/datepicker/index.d.ts +3 -1
- package/react/description-list/index.d.ts +3 -1
- package/react/description-list-group/index.d.ts +3 -1
- package/react/divider/index.d.ts +3 -1
- package/react/drawer/index.d.ts +3 -1
- package/react/dropdown/index.d.ts +3 -1
- package/react/dropdown-item/index.d.ts +3 -1
- package/react/file-upload/index.d.ts +3 -1
- package/react/footer/index.d.ts +3 -1
- package/react/footer-item/index.d.ts +3 -1
- package/react/icon/index.d.ts +3 -1
- package/react/icon-button/index.d.ts +3 -1
- package/react/icon-card/index.d.ts +3 -1
- package/react/icon-list/index.d.ts +3 -1
- package/react/image-card/index.d.ts +3 -1
- package/react/index.cjs.js +4 -4
- package/react/index.d.ts +1 -1
- package/react/index.js +1 -1
- package/react/input/index.d.ts +3 -1
- package/react/link/index.d.ts +3 -1
- package/react/mainnav/index.d.ts +3 -1
- package/react/mainnav-dropdown/index.d.ts +3 -1
- package/react/mainnav-item/index.d.ts +3 -1
- package/react/masthead/index.d.ts +3 -1
- package/react/modal/index.d.ts +3 -1
- package/react/overflow-menu/index.d.ts +3 -1
- package/react/pagination/index.d.ts +3 -1
- package/react/progress-bar/index.d.ts +3 -1
- package/react/quantity-toggle/index.d.ts +3 -1
- package/react/radio/index.d.ts +3 -1
- package/react/radio-group/index.d.ts +3 -1
- package/react/select/index.d.ts +3 -1
- package/react/select-option/index.d.ts +3 -1
- package/react/sidebar/index.d.ts +3 -1
- package/react/sidebar-group/index.d.ts +3 -1
- package/react/sidebar-item/index.d.ts +3 -1
- package/react/sidebar-section/index.d.ts +3 -1
- package/react/sidenav/index.d.ts +3 -1
- package/react/sidenav-item/index.d.ts +3 -1
- package/react/sidenav-link/index.d.ts +3 -1
- package/react/skeleton/index.d.ts +3 -1
- package/react/spinner/index.d.ts +3 -1
- package/react/step/index.d.ts +3 -1
- package/react/stepper/index.d.ts +3 -1
- package/react/styles/form-check.cjs.js +1 -1
- package/react/styles/form-check.js +1 -1
- package/react/styles/form-hint.cjs.js +1 -1
- package/react/styles/form-hint.js +1 -1
- package/react/styles/form-label.cjs.js +1 -1
- package/react/styles/form-label.js +1 -1
- package/react/styles/form-text-control.cjs.js +1 -1
- package/react/styles/form-text-control.js +1 -1
- package/react/subnav/index.d.ts +3 -1
- package/react/subnav-item/index.d.ts +3 -1
- package/react/switch/index.d.ts +3 -1
- package/react/system-banner/index.d.ts +3 -1
- package/react/system-banner-item/index.d.ts +3 -1
- package/react/tab/index.d.ts +3 -1
- package/react/tab-group/index.d.ts +3 -1
- package/react/tab-panel/index.d.ts +3 -1
- package/react/table/index.d.ts +3 -1
- package/react/table-cell/index.d.ts +3 -1
- package/react/table-head/index.d.ts +3 -1
- package/react/table-of-contents/index.d.ts +3 -1
- package/react/table-row/index.d.ts +3 -1
- package/react/textarea/index.d.ts +3 -1
- package/react/thumbnail-card/index.d.ts +3 -1
- package/react/toast/index.d.ts +3 -1
- package/react/toast-container/index.d.ts +3 -1
- package/react/tooltip/index.d.ts +3 -1
- package/styles/form-check.js +1 -1
- package/styles/form-hint.js +1 -1
- package/styles/form-label.js +1 -1
- package/styles/form-text-control.js +1 -1
- package/types/react.d.ts +101 -101
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { css } from 'lit';
|
|
3
3
|
|
|
4
|
-
var css_248z = css`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;overflow:hidden;padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-size:var(--sgds-font-size-
|
|
4
|
+
var css_248z = css`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-label-md)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;overflow:hidden;padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-size:var(--sgds-font-size-label-md);line-height:var(--sgds-line-height-xs);min-width:0;outline:none;padding:0;width:100%}.form-clearable{color:var(--sgds-color-subtle);cursor:pointer}@media (prefers-reduced-motion:reduce){.form-control-group{transition:none}}.form-control-group:not(.disabled):not(.is-invalid):not(.readonly):not(:focus-within):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-group:not(.disabled):not(.is-invalid):focus-within{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-container.disabled{opacity:var(--sgds-opacity-40)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted);cursor:not-allowed}.form-control-group.readonly{background-color:var(--sgds-form-surface-raised)}.form-control-group.is-invalid:not(.disabled){border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-control-group:not(.disabled).is-invalid:focus-within{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;
|
|
5
5
|
|
|
6
6
|
export { css_248z as default };
|
|
7
7
|
//# sourceMappingURL=form-text-control.js.map
|
package/react/subnav/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsSubnavProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsSubnavProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsSubnavItemProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsSubnavItemProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
package/react/switch/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsSwitchProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsSwitchProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsSystemBannerProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsSystemBannerProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsSystemBannerItemProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsSystemBannerItemProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
package/react/tab/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTabProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTabProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTabGroupProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTabGroupProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTabPanelProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTabPanelProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
package/react/table/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTableProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTableProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTableCellProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTableCellProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTableHeadProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTableHeadProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTableOfContentsProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTableOfContentsProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTableRowProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTableRowProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTextareaProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTextareaProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsThumbnailCardProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsThumbnailCardProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
package/react/toast/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsToastProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsToastProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsToastContainerProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsToastContainerProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
package/react/tooltip/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SgdsTooltipProps } from '../../types/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<React.PropsWithChildren<SgdsTooltipProps> & React.RefAttributes<HTMLElement>>;
|
|
2
4
|
export default _default;
|
package/styles/form-check.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
|
|
3
|
-
var css_248z = css`input{margin:0}.form-check{display:flex;gap:var(--sgds-form-gap-md);padding:var(--sgds-form-padding-inline-sm) 0}.form-check-input{appearance:none;background-color:var(--sgds-form-surface-default);background-image:var(--sgds-radio-bg-image);background-position:50%;background-repeat:no-repeat;background-size:auto;border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);height:var(--sgds-form-height-sm);width:var(--sgds-form-width-xs)}.form-check-input[checked]{background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-check-input:not([disabled]):not(.is-invalid):not([aria-checked=true]):not(:focus-visible):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-check-input:not([disabled]):not(.is-invalid)[checked]:focus-visible,.form-check-input:not([disabled]):not(.is-invalid)[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-
|
|
3
|
+
var css_248z = css`input{margin:0}.form-check{display:flex;gap:var(--sgds-form-gap-md);padding:var(--sgds-form-padding-inline-sm) 0}.form-check-input{appearance:none;background-color:var(--sgds-form-surface-default);background-image:var(--sgds-radio-bg-image);background-position:50%;background-repeat:no-repeat;background-size:auto;border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);height:var(--sgds-form-height-sm);width:var(--sgds-form-width-xs)}.form-check-input[checked]{background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:focus-visible{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-check-input:not([disabled]):not(.is-invalid):not([aria-checked=true]):not(:focus-visible):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-check-input:not([disabled]):not(.is-invalid)[checked]:focus-visible,.form-check-input:not([disabled]):not(.is-invalid)[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-40)}.form-check-input:not([disabled]).is-invalid{border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-check-input:not([disabled]).is-invalid:focus-visible{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;
|
|
4
4
|
|
|
5
5
|
export { css_248z as default };
|
|
6
6
|
//# sourceMappingURL=form-check.js.map
|
package/styles/form-hint.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
|
|
3
|
-
var css_248z = css`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-
|
|
3
|
+
var css_248z = css`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-label-sm);line-height:var(--sgds-line-height-2-xs)}.form-text.disabled{opacity:var(--sgds-opacity-40)}`;
|
|
4
4
|
|
|
5
5
|
export { css_248z as default };
|
|
6
6
|
//# sourceMappingURL=form-hint.js.map
|
package/styles/form-label.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
|
|
3
|
-
var css_248z = css`.form-label{color:var(--sgds-form-color-default);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-
|
|
3
|
+
var css_248z = css`.form-label{color:var(--sgds-form-color-default);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-40)}.form-check-label{color:var(--sgds-form-color-default)}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:not-allowed}`;
|
|
4
4
|
|
|
5
5
|
export { css_248z as default };
|
|
6
6
|
//# sourceMappingURL=form-label.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
|
|
3
|
-
var css_248z = css`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;overflow:hidden;padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-size:var(--sgds-font-size-
|
|
3
|
+
var css_248z = css`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.m-width-160{min-width:var(--sgds-dimension-160)}.m-width-256{min-width:var(--sgds-dimension-256)}.form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-label-md)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius,var(--sgds-form-border-radius-md));display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;overflow:hidden;padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-size:var(--sgds-font-size-label-md);line-height:var(--sgds-line-height-xs);min-width:0;outline:none;padding:0;width:100%}.form-clearable{color:var(--sgds-color-subtle);cursor:pointer}@media (prefers-reduced-motion:reduce){.form-control-group{transition:none}}.form-control-group:not(.disabled):not(.is-invalid):not(.readonly):not(:focus-within):hover{outline:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-group:not(.disabled):not(.is-invalid):focus-within{outline:var(--sgds-form-outline-focus);outline-offset:var(--sgds-form-outline-offset-focus)}.form-control-container.disabled{opacity:var(--sgds-opacity-40)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted);cursor:not-allowed}.form-control-group.readonly{background-color:var(--sgds-form-surface-raised)}.form-control-group.is-invalid:not(.disabled){border:var(--sgds-form-border-width-default) solid var(--sgds-form-danger-border-color-default)}.form-control-group:not(.disabled).is-invalid:focus-within{outline:var(--sgds-border-width-2) solid var(--sgds-form-danger-color-default);outline-offset:var(--sgds-form-outline-offset-focus)}`;
|
|
4
4
|
|
|
5
5
|
export { css_248z as default };
|
|
6
6
|
//# sourceMappingURL=form-text-control.js.map
|