@govtechsg/sgds-web-component 0.0.10 → 0.0.11
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/package.json +7 -64
- package/.github/workflows/publish-latest.yml +0 -22
- package/.github/workflows/publish-pr.yml +0 -28
- package/.husky/commit-msg +0 -4
- package/.husky/prepare-commit-msg +0 -8
- package/.storybook/main.js +0 -16
- package/.storybook/preview-head.html +0 -11
- package/.storybook/preview.js +0 -9
- package/.vscode/settings.json +0 -7
- package/CONTRIBUTING.md +0 -56
- package/LICENSE +0 -20
- package/amplify.yml +0 -22
- package/commitlint.config.js +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/button-element.scss.html +0 -112
- package/coverage/lcov-report/button-element.ts.html +0 -145
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -116
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -32
- package/index.html +0 -430
- package/mocks/dropdown.d.ts +0 -4
- package/mocks/dropdown.ts +0 -27
- package/mocks/link.d.ts +0 -3
- package/mocks/link.ts +0 -6
- package/rollup.config.js +0 -73
- package/rollup.test.config.js +0 -42
- package/scripts/buildUtils.js +0 -30
- package/scripts/frankBuild.js +0 -49
- package/src/Button/index.ts +0 -1
- package/src/Button/sgds-button.scss +0 -28
- package/src/Button/sgds-button.ts +0 -153
- package/src/Card/index.ts +0 -1
- package/src/Card/sgds-action-card.scss +0 -27
- package/src/Card/sgds-action-card.ts +0 -115
- package/src/Checkbox/index.ts +0 -1
- package/src/Checkbox/sgds-checkbox.scss +0 -4
- package/src/Checkbox/sgds-checkbox.ts +0 -149
- package/src/Dropdown/index.ts +0 -3
- package/src/Dropdown/sgds-dropdown-item.ts +0 -39
- package/src/Dropdown/sgds-dropdown.scss +0 -5
- package/src/Dropdown/sgds-dropdown.ts +0 -54
- package/src/Footer/index.ts +0 -3
- package/src/Footer/sgds-footer.scss +0 -5
- package/src/Footer/sgds-footer.ts +0 -121
- package/src/Input/index.ts +0 -1
- package/src/Input/sgds-input.scss +0 -20
- package/src/Input/sgds-input.ts +0 -178
- package/src/Mainnav/index.ts +0 -4
- package/src/Mainnav/sgds-mainnav-dropdown.scss +0 -13
- package/src/Mainnav/sgds-mainnav-dropdown.ts +0 -45
- package/src/Mainnav/sgds-mainnav-item.scss +0 -24
- package/src/Mainnav/sgds-mainnav-item.ts +0 -8
- package/src/Mainnav/sgds-mainnav.scss +0 -39
- package/src/Mainnav/sgds-mainnav.ts +0 -183
- package/src/Masthead/index.ts +0 -1
- package/src/Masthead/sgds-masthead.scss +0 -217
- package/src/Masthead/sgds-masthead.ts +0 -189
- package/src/Modal/index.ts +0 -1
- package/src/Modal/sgds-modal.scss +0 -128
- package/src/Modal/sgds-modal.ts +0 -309
- package/src/QuantityToggle/index.ts +0 -1
- package/src/QuantityToggle/sgds-quantitytoggle.scss +0 -10
- package/src/QuantityToggle/sgds-quantitytoggle.ts +0 -130
- package/src/Radio/index.ts +0 -2
- package/src/Radio/sgds-radio.scss +0 -5
- package/src/Radio/sgds-radio.ts +0 -120
- package/src/Radio/sgds-radiogroup.scss +0 -22
- package/src/Radio/sgds-radiogroup.ts +0 -221
- package/src/Sidenav/index.ts +0 -4
- package/src/Sidenav/sgds-sidenav-item.scss +0 -73
- package/src/Sidenav/sgds-sidenav-item.ts +0 -145
- package/src/Sidenav/sgds-sidenav-link.scss +0 -25
- package/src/Sidenav/sgds-sidenav-link.ts +0 -8
- package/src/Sidenav/sgds-sidenav.scss +0 -6
- package/src/Sidenav/sgds-sidenav.ts +0 -33
- package/src/Tab/index.ts +0 -3
- package/src/Tab/sgds-tab.scss +0 -84
- package/src/Tab/sgds-tab.ts +0 -87
- package/src/Tab/sgds-tabgroup.scss +0 -198
- package/src/Tab/sgds-tabgroup.ts +0 -295
- package/src/Tab/sgds-tabpanel.scss +0 -12
- package/src/Tab/sgds-tabpanel.ts +0 -55
- package/src/Textarea/index.ts +0 -1
- package/src/Textarea/sgds-textarea.scss +0 -23
- package/src/Textarea/sgds-textarea.ts +0 -201
- package/src/index.ts +0 -16
- package/src/utils/animate.ts +0 -69
- package/src/utils/animation-registry.ts +0 -71
- package/src/utils/base.scss +0 -14
- package/src/utils/breakpoints.ts +0 -5
- package/src/utils/card-element.ts +0 -42
- package/src/utils/components.style.scss +0 -531
- package/src/utils/defaultvalue.ts +0 -51
- package/src/utils/dropdown-element.ts +0 -244
- package/src/utils/event.ts +0 -13
- package/src/utils/form.ts +0 -183
- package/src/utils/generateId.ts +0 -4
- package/src/utils/link-element.ts +0 -34
- package/src/utils/mergeDeep.ts +0 -22
- package/src/utils/modal.ts +0 -64
- package/src/utils/object.ts +0 -2
- package/src/utils/offset.ts +0 -6
- package/src/utils/scroll.ts +0 -57
- package/src/utils/sgds-element.ts +0 -18
- package/src/utils/slot.ts +0 -102
- package/src/utils/tabbable.ts +0 -81
- package/src/utils/watch.ts +0 -62
- package/stories/ActionCard.stories.mdx +0 -199
- package/stories/Button.stories.mdx +0 -194
- package/stories/Checkbox.stories.mdx +0 -196
- package/stories/Dropdown.stories.mdx +0 -152
- package/stories/Footer.stories.mdx +0 -261
- package/stories/Input.stories.mdx +0 -236
- package/stories/MainNav.stories.mdx +0 -169
- package/stories/Masthead.stories.mdx +0 -112
- package/stories/Modal.stories.mdx +0 -103
- package/stories/QuantityToggle.stories.mdx +0 -97
- package/stories/Radio.stories.mdx +0 -262
- package/stories/Sample.stories.js +0 -29
- package/stories/Sample.stories.mdx +0 -33
- package/stories/SideNav.stories.mdx +0 -245
- package/stories/common.js +0 -185
- package/stories/textarea.stories.mdx +0 -253
- package/test/button.element.test.ts +0 -185
- package/test/checkbox.test.ts +0 -240
- package/test/dropdown.test.ts +0 -637
- package/test/footer.test.ts +0 -181
- package/test/generateId.test.ts +0 -18
- package/test/input.element.test.ts +0 -316
- package/test/link-element.test.ts +0 -38
- package/test/mainnav.test.ts +0 -313
- package/test/masthead.test.ts +0 -116
- package/test/modal.test.ts +0 -149
- package/test/quantitytoggle.test.ts +0 -76
- package/test/radio.test.ts +0 -310
- package/test/selectable-card.test.ts +0 -159
- package/test/sidenav.test.ts +0 -390
- package/test/tab.test.ts +0 -76
- package/test/textarea.test.ts +0 -126
- package/tsconfig.json +0 -26
- package/tsconfig.test.json +0 -24
- package/typings/scss.d.ts +0 -5
- package/web-dev-server.config.mjs +0 -7
- package/web-test-runner.config.mjs +0 -47
- /package/{lib/Button → Button}/index.d.ts +0 -0
- /package/{lib/Button → Button}/index.js +0 -0
- /package/{lib/Button → Button}/index.js.map +0 -0
- /package/{lib/Button → Button}/package.json +0 -0
- /package/{lib/Button → Button}/sgds-button.d.ts +0 -0
- /package/{lib/Card → Card}/index.d.ts +0 -0
- /package/{lib/Card → Card}/index.js +0 -0
- /package/{lib/Card → Card}/index.js.map +0 -0
- /package/{lib/Card → Card}/package.json +0 -0
- /package/{lib/Card → Card}/sgds-action-card.d.ts +0 -0
- /package/{lib/Checkbox → Checkbox}/index.d.ts +0 -0
- /package/{lib/Checkbox → Checkbox}/index.js +0 -0
- /package/{lib/Checkbox → Checkbox}/index.js.map +0 -0
- /package/{lib/Checkbox → Checkbox}/package.json +0 -0
- /package/{lib/Checkbox → Checkbox}/sgds-checkbox.d.ts +0 -0
- /package/{lib/Dropdown → Dropdown}/index.d.ts +0 -0
- /package/{lib/Dropdown → Dropdown}/index.js +0 -0
- /package/{lib/Dropdown → Dropdown}/index.js.map +0 -0
- /package/{lib/Dropdown → Dropdown}/package.json +0 -0
- /package/{lib/Dropdown → Dropdown}/sgds-dropdown-item.d.ts +0 -0
- /package/{lib/Dropdown → Dropdown}/sgds-dropdown.d.ts +0 -0
- /package/{lib/Footer → Footer}/index.d.ts +0 -0
- /package/{lib/Footer → Footer}/index.js +0 -0
- /package/{lib/Footer → Footer}/index.js.map +0 -0
- /package/{lib/Footer → Footer}/package.json +0 -0
- /package/{lib/Footer → Footer}/sgds-footer.d.ts +0 -0
- /package/{lib/Input → Input}/index.d.ts +0 -0
- /package/{lib/Input → Input}/index.js +0 -0
- /package/{lib/Input → Input}/index.js.map +0 -0
- /package/{lib/Input → Input}/package.json +0 -0
- /package/{lib/Input → Input}/sgds-input.d.ts +0 -0
- /package/{lib/Mainnav → Mainnav}/index.d.ts +0 -0
- /package/{lib/Mainnav → Mainnav}/index.js +0 -0
- /package/{lib/Mainnav → Mainnav}/index.js.map +0 -0
- /package/{lib/Mainnav → Mainnav}/package.json +0 -0
- /package/{lib/Mainnav → Mainnav}/sgds-mainnav-dropdown.d.ts +0 -0
- /package/{lib/Mainnav → Mainnav}/sgds-mainnav-item.d.ts +0 -0
- /package/{lib/Mainnav → Mainnav}/sgds-mainnav.d.ts +0 -0
- /package/{lib/Masthead → Masthead}/index.d.ts +0 -0
- /package/{lib/Masthead → Masthead}/index.js +0 -0
- /package/{lib/Masthead → Masthead}/index.js.map +0 -0
- /package/{lib/Masthead → Masthead}/package.json +0 -0
- /package/{lib/Masthead → Masthead}/sgds-masthead.d.ts +0 -0
- /package/{lib/Modal → Modal}/index.d.ts +0 -0
- /package/{lib/Modal → Modal}/index.js +0 -0
- /package/{lib/Modal → Modal}/index.js.map +0 -0
- /package/{lib/Modal → Modal}/package.json +0 -0
- /package/{lib/Modal → Modal}/sgds-modal.d.ts +0 -0
- /package/{lib/QuantityToggle → QuantityToggle}/index.d.ts +0 -0
- /package/{lib/QuantityToggle → QuantityToggle}/index.js +0 -0
- /package/{lib/QuantityToggle → QuantityToggle}/index.js.map +0 -0
- /package/{lib/QuantityToggle → QuantityToggle}/package.json +0 -0
- /package/{lib/QuantityToggle → QuantityToggle}/sgds-quantitytoggle.d.ts +0 -0
- /package/{lib/Radio → Radio}/index.d.ts +0 -0
- /package/{lib/Radio → Radio}/index.js +0 -0
- /package/{lib/Radio → Radio}/index.js.map +0 -0
- /package/{lib/Radio → Radio}/package.json +0 -0
- /package/{lib/Radio → Radio}/sgds-radio.d.ts +0 -0
- /package/{lib/Radio → Radio}/sgds-radiogroup.d.ts +0 -0
- /package/{lib/Sidenav → Sidenav}/index.d.ts +0 -0
- /package/{lib/Sidenav → Sidenav}/index.js +0 -0
- /package/{lib/Sidenav → Sidenav}/index.js.map +0 -0
- /package/{lib/Sidenav → Sidenav}/package.json +0 -0
- /package/{lib/Sidenav → Sidenav}/sgds-sidenav-item.d.ts +0 -0
- /package/{lib/Sidenav → Sidenav}/sgds-sidenav-link.d.ts +0 -0
- /package/{lib/Sidenav → Sidenav}/sgds-sidenav.d.ts +0 -0
- /package/{lib/Tab → Tab}/index.d.ts +0 -0
- /package/{lib/Tab → Tab}/index.js +0 -0
- /package/{lib/Tab → Tab}/index.js.map +0 -0
- /package/{lib/Tab → Tab}/package.json +0 -0
- /package/{lib/Tab → Tab}/sgds-tab.d.ts +0 -0
- /package/{lib/Tab → Tab}/sgds-tabgroup.d.ts +0 -0
- /package/{lib/Tab → Tab}/sgds-tabpanel.d.ts +0 -0
- /package/{lib/Textarea → Textarea}/index.d.ts +0 -0
- /package/{lib/Textarea → Textarea}/index.js +0 -0
- /package/{lib/Textarea → Textarea}/index.js.map +0 -0
- /package/{lib/Textarea → Textarea}/package.json +0 -0
- /package/{lib/Textarea → Textarea}/sgds-textarea.d.ts +0 -0
- /package/{lib/index.d.ts → index.d.ts} +0 -0
- /package/{lib/index.js → index.js} +0 -0
- /package/{lib/index.js.map → index.js.map} +0 -0
- /package/{lib/umd → umd}/index.js +0 -0
- /package/{lib/umd → umd}/index.js.map +0 -0
- /package/{lib/utils → utils}/animate.d.ts +0 -0
- /package/{lib/utils → utils}/animation-registry.d.ts +0 -0
- /package/{lib/utils → utils}/breakpoints.d.ts +0 -0
- /package/{lib/utils → utils}/card-element.d.ts +0 -0
- /package/{lib/utils → utils}/defaultvalue.d.ts +0 -0
- /package/{lib/utils → utils}/dropdown-element.d.ts +0 -0
- /package/{lib/utils → utils}/event.d.ts +0 -0
- /package/{lib/utils → utils}/form.d.ts +0 -0
- /package/{lib/utils → utils}/generateId.d.ts +0 -0
- /package/{lib/utils → utils}/link-element.d.ts +0 -0
- /package/{lib/utils → utils}/mergeDeep.d.ts +0 -0
- /package/{lib/utils → utils}/modal.d.ts +0 -0
- /package/{lib/utils → utils}/object.d.ts +0 -0
- /package/{lib/utils → utils}/offset.d.ts +0 -0
- /package/{lib/utils → utils}/scroll.d.ts +0 -0
- /package/{lib/utils → utils}/sgds-element.d.ts +0 -0
- /package/{lib/utils → utils}/slot.d.ts +0 -0
- /package/{lib/utils → utils}/tabbable.d.ts +0 -0
- /package/{lib/utils → utils}/watch.d.ts +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { esbuildPlugin } from "@web/dev-server-esbuild";
|
|
2
|
-
import { sassPlugin } from "esbuild-sass-plugin";
|
|
3
|
-
import rollupPostcss from 'rollup-plugin-postcss';
|
|
4
|
-
import rollupLitcss from 'rollup-plugin-postcss-lit';
|
|
5
|
-
import { fromRollup } from '@web/dev-server-rollup';
|
|
6
|
-
import {playwrightLauncher} from '@web/test-runner-playwright';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const browsers = {
|
|
10
|
-
// Local browser testing via playwright
|
|
11
|
-
// ===========
|
|
12
|
-
chromium: playwrightLauncher({product: 'chromium'}),
|
|
13
|
-
firefox: playwrightLauncher({product: 'firefox'}),
|
|
14
|
-
// webkit: playwrightLauncher({product: 'webkit'}),
|
|
15
|
-
|
|
16
|
-
// Uncomment example launchers for running on Sauce Labs
|
|
17
|
-
// ===========
|
|
18
|
-
// chromium: sauceLabsLauncher({browserName: 'chrome', browserVersion: 'latest', platformName: 'Windows 10'}),
|
|
19
|
-
// firefox: sauceLabsLauncher({browserName: 'firefox', browserVersion: 'latest', platformName: 'Windows 10'}),
|
|
20
|
-
// edge: sauceLabsLauncher({browserName: 'MicrosoftEdge', browserVersion: 'latest', platformName: 'Windows 10'}),
|
|
21
|
-
// ie11: sauceLabsLauncher({browserName: 'internet explorer', browserVersion: '11.0', platformName: 'Windows 10'}),
|
|
22
|
-
// safari: sauceLabsLauncher({browserName: 'safari', browserVersion: 'latest', platformName: 'macOS 10.15'}),
|
|
23
|
-
|
|
24
|
-
// Uncomment example launchers for running on Sauce Labs
|
|
25
|
-
// ===========
|
|
26
|
-
// chromium: browserstackLauncher({browserName: 'Chrome', os: 'Windows', os_version: '10'}),
|
|
27
|
-
// firefox: browserstackLauncher({browserName: 'Firefox', os: 'Windows', os_version: '10'}),
|
|
28
|
-
// edge: browserstackLauncher({browserName: 'MicrosoftEdge', os: 'Windows', os_version: '10'}),
|
|
29
|
-
// ie11: browserstackLauncher({browserName: 'IE', browser_version: '11.0', os: 'Windows', os_version: '10'}),
|
|
30
|
-
// safari: browserstackLauncher({browserName: 'Safari', browser_version: '14.0', os: 'OS X', os_version: 'Big Sur'}),
|
|
31
|
-
};
|
|
32
|
-
export default {
|
|
33
|
-
files: "test-outdir/**/*.test.js",
|
|
34
|
-
nodeResolve: true,
|
|
35
|
-
browsers: Object.values(browsers),
|
|
36
|
-
plugins: [
|
|
37
|
-
esbuildPlugin({
|
|
38
|
-
ts: true, // compile ts files
|
|
39
|
-
// loaders: { ".scss": "text" }, // ignoring .scss files during unit testing
|
|
40
|
-
}),
|
|
41
|
-
// postcss({
|
|
42
|
-
// minimize: false,
|
|
43
|
-
// inject: false
|
|
44
|
-
// }),
|
|
45
|
-
// litcss()
|
|
46
|
-
],
|
|
47
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|