Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: init ds theme #1224

Draft
wants to merge 110 commits into
base: v7
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
f2fb528
feat: initialise ds-theme folder structure
wsuwt Oct 9, 2024
0f5e6df
chore: add ds-theme to gitignore
wsuwt Oct 9, 2024
b9013b5
chore: remove old ds-theme
wsuwt Oct 15, 2024
f435b6f
feat: init structure
wsuwt Oct 15, 2024
65d1d19
feat: add theme override mechanism
wsuwt Oct 15, 2024
64d9121
feat: add zipped less tokens
wsuwt Oct 24, 2024
76e1420
Merge branch 'v7' into feat/init-ds-theme
wsuwt Oct 24, 2024
47fd9a8
fix: elements look up file path
wsuwt Oct 25, 2024
0de9f75
fix: theme source path containing double slash
wsuwt Oct 25, 2024
3577ede
feat: add toggle button style
wsuwt Oct 25, 2024
a573174
feat: add cta button
wsuwt Oct 25, 2024
0fcfa08
feat: map cta and toggles
wsuwt Oct 28, 2024
96114c6
fix: remove redundant default toggle style
wsuwt Oct 28, 2024
39bc0f3
feat: handles transparent cta toggles
wsuwt Oct 28, 2024
74696b9
feat: add accordion and collapse
wsuwt Oct 28, 2024
a75ebe9
feat: add icon color
wsuwt Oct 29, 2024
baae499
fix: collapse focused background color
wsuwt Oct 29, 2024
23a1808
feat: add item, list and tree color overrides
wsuwt Oct 29, 2024
947a473
docs: add todos
wsuwt Oct 30, 2024
d1d8ae8
fix: move design tokens to devDep
wsuwt Oct 30, 2024
f580bae
feat: add tooltip
wsuwt Oct 30, 2024
a491f66
feat: add control and overlay variables
wsuwt Oct 30, 2024
b7aa8c2
fix: revise button styles
wsuwt Nov 5, 2024
db5a98a
feat: fix demo block background color
wsuwt Nov 5, 2024
29d6b52
refactor: use cont token
wsuwt Nov 5, 2024
b106894
fix: overlay-menu border color
wsuwt Nov 5, 2024
52e7187
feat: add canvas, flag, icon, layout, loader
dtanp-rft Nov 5, 2024
8776484
Merge branch 'feat/init-ds-theme' of https://github.com/Refinitiv/ref…
dtanp-rft Nov 5, 2024
a8a8db2
feat: add label, sidebar-layout
dtanp-rft Nov 5, 2024
a3c86cc
feat: add placeholder component theme
wsuwt Nov 5, 2024
40cbf15
fix: add tooltip box shadow
wsuwt Nov 5, 2024
52e9a9f
feat: revise item selection styles
wsuwt Nov 5, 2024
3ca698a
feat: dataviz components MVP
dtanp-rft Nov 5, 2024
3ab8c72
Merge branch 'feat/init-ds-theme' of https://github.com/Refinitiv/ref…
dtanp-rft Nov 5, 2024
d36ba77
refactor: use variable for button border width
wsuwt Nov 5, 2024
6e104bf
fix: remove button border radius
wsuwt Nov 5, 2024
f0abaf2
feat: add checkbox, radio button placeholder
wsuwt Nov 5, 2024
1cddef2
refactor: remove unused variables
wsuwt Nov 5, 2024
52ee137
fix: use only primary color for icon hover
wsuwt Nov 5, 2024
c69fb09
feat: add placeholder for number-field
wsuwt Nov 5, 2024
1f93984
refactor: use transparent contextual variable instead
wsuwt Nov 5, 2024
187303b
feat: add fields
wsuwt Nov 5, 2024
262b3e9
feat: add select
wsuwt Nov 5, 2024
32f88a2
feat: add overlay placeholder
wsuwt Nov 5, 2024
e18b171
feat: add combo-box placeholder
wsuwt Nov 5, 2024
3eace17
feat: add tree-select placeholder
wsuwt Nov 5, 2024
98c40a8
feat: add headers
wsuwt Nov 5, 2024
c80e51a
feat: add rating and counter placeholder
wsuwt Nov 5, 2024
71d044f
feat: update status variables
wsuwt Nov 6, 2024
d7d6415
feat: update dataviz tokens
dtanp-rft Nov 6, 2024
387b275
Merge branch 'feat/init-ds-theme' of https://github.com/Refinitiv/ref…
dtanp-rft Nov 6, 2024
e84dcf8
chore: update web-design-token to dev.11
dtanp-rft Nov 6, 2024
09b9584
feat: use Proxima Vara font
dtanp-rft Nov 6, 2024
5936387
fix(ds-theme): add new css vars and refactor code
dtanp-rft Nov 6, 2024
b28c3f5
feat: add dialog
wsuwt Nov 6, 2024
201b281
feat: add appstate-bar, clock and notification placeholder
wsuwt Nov 6, 2024
80297ec
Merge branch 'feat/init-ds-theme' of https://github.com/Refinitiv/ref…
wsuwt Nov 6, 2024
b18674c
feat: add toggle
wsuwt Nov 6, 2024
84380fc
feat: add color dialog and picker placeholder
wsuwt Nov 6, 2024
c73cc1b
fix(ds-theme): remove incorrect lines
dtanp-rft Nov 6, 2024
e1e7837
feat(ds-theme): add link and rename tgz
dtanp-rft Nov 6, 2024
4ee0b98
feat: add tab and tabbar
wsuwt Nov 6, 2024
c77f5b6
Merge branch 'feat/init-ds-theme' of https://github.com/Refinitiv/ref…
wsuwt Nov 6, 2024
0eed4f7
fix(ds-theme): use token for fg color of notification
dtanp-rft Nov 6, 2024
4753cfa
feat: add pill
wsuwt Nov 7, 2024
801c7a5
feat: add slider
wsuwt Nov 7, 2024
4041306
feat: add border radius to button
wsuwt Nov 7, 2024
0c25072
feat: add calendar
wsuwt Nov 7, 2024
73ba157
feat(ds-theme): update border-radius
dtanp-rft Nov 8, 2024
ec7d2e9
feat: update docs to use ds theme
dtanp-rft Nov 8, 2024
f692571
fix: add ds-theme to docs dependency
dtanp-rft Nov 8, 2024
a842886
fix: remove border line from tree item and add space between item
dtanp-rft Nov 8, 2024
d2953fc
feat: update pill tokens to use toggle tag
wsuwt Nov 8, 2024
61a3129
Merge branch 'feat/init-ds-theme' of https://github.com/Refinitiv/ref…
wsuwt Nov 8, 2024
027f2f3
fix: set border-radius tree select
dtanp-rft Nov 8, 2024
304fa9f
fix: improve counter
dtanp-rft Nov 8, 2024
7284aea
Merge branch 'feat/init-ds-theme' of https://github.com/Refinitiv/ref…
dtanp-rft Nov 8, 2024
1572318
feat: update datetime picker to use dialog background color and border
wsuwt Nov 8, 2024
4d7bd7c
Merge branch 'feat/init-ds-theme' of https://github.com/Refinitiv/ref…
wsuwt Nov 8, 2024
74d9ec1
feat: improve select
wsuwt Nov 8, 2024
6b5eee5
feat: improve dialog
wsuwt Nov 8, 2024
30a4838
fix: add workaround for selection color
dtanp-rft Nov 11, 2024
ef7538e
fix: body typography
dtanp-rft Nov 11, 2024
54dce00
fix: remove border radius from select and pagination
dtanp-rft Nov 11, 2024
f329232
fix: combo box style
dtanp-rft Nov 11, 2024
cb7456b
fix: autosuggest
dtanp-rft Nov 11, 2024
1135eaa
fix: combo box border color
dtanp-rft Nov 11, 2024
7d465cd
fix: jump button in interactive chart
dtanp-rft Nov 12, 2024
ee7ff4d
fix: toggle
dtanp-rft Nov 12, 2024
b2d56ea
feat: style scrollbar
Nov 12, 2024
193aa5a
Merge branch 'feat/init-ds-theme' of https://github.com/Refinitiv/ref…
Nov 12, 2024
82b4fb7
chore: add comment
Nov 12, 2024
f3d6a9c
fix: toggle width for checked-label
dtanp-rft Nov 12, 2024
10ae77c
chore: remove ds-theme from package lock
Nov 12, 2024
1bf04f0
chore: update doc to use latest version of ds-theme
Nov 12, 2024
a4d6f22
chore: add ds-theme as dependencies of elements package
Nov 12, 2024
5219d8a
fix: update ef header bg tokens from design
dtanp-rft Nov 13, 2024
b76451c
fix(docs): update to use ds package in monorepo
dtanp-rft Nov 13, 2024
dd07538
fix: button opacity
bualoy-napat Nov 13, 2024
ef95f2b
fix: add opacity on close button of dialog
bualoy-napat Nov 14, 2024
24049f4
fix: override border radius of input to zero
bualoy-napat Nov 14, 2024
46ecb5e
fix: override opacity of button and close button
bualoy-napat Nov 14, 2024
5fe689c
fix(ds-theme): update design-token to 0.0.3-dev.56
dtanp-rft Nov 14, 2024
127f545
Merge branch 'v7' of https://github.com/Refinitiv/refinitiv-ui into f…
dtanp-rft Nov 14, 2024
f780cab
fix: update background color of autosuggest item when it highlighted
bualoy-napat Nov 14, 2024
60da76b
Merge branch 'feat/init-ds-theme' of github.com:Refinitiv/refinitiv-u…
bualoy-napat Nov 14, 2024
b6aada5
fix: update incorrect token in accordion
bualoy-napat Nov 14, 2024
854258d
fix: update incorrect border color token in accordion
bualoy-napat Nov 14, 2024
853508e
Revert "fix: update incorrect border color token in accordion"
bualoy-napat Nov 14, 2024
315f760
Revert "fix: update incorrect token in accordion"
bualoy-napat Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ web_modules/
.node_repl_history

# Output of 'npm pack'
*.tgz
# Allow pandora-book offline package
!documents/tools/*.tgz

Expand Down Expand Up @@ -130,6 +129,8 @@ packages/solar-theme/charcoal
packages/solar-theme/pearl
packages/halo-theme/dark
packages/halo-theme/light
packages/ds-theme/dark
packages/ds-theme/light

# Doc
custom-elements.json
Expand All @@ -148,4 +149,4 @@ packages/**/node_modules
certs

# nx
.nx
.nx
1 change: 1 addition & 0 deletions documents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@refinitiv-ui/core": "^7.5.1",
"@refinitiv-ui/elements": "^7.13.5",
"@refinitiv-ui/halo-theme": "^7.5.1",
"@refinitiv-ui/ds-theme": "7.0.0",
"@refinitiv-ui/phrasebook": "^7.1.1",
"@refinitiv-ui/utils": "^7.3.0",
"fast-glob": "^3.2.12"
Expand Down
2 changes: 1 addition & 1 deletion documents/src/elements/dark.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import '@refinitiv-ui/halo-theme/dark/imports/all-elements.js';
import '@refinitiv-ui/ds-theme/dark/imports/all-elements.js';
2 changes: 1 addition & 1 deletion documents/src/elements/light.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import '@refinitiv-ui/halo-theme/light/imports/all-elements.js';
import '@refinitiv-ui/ds-theme/light/imports/all-elements.js';
4 changes: 2 additions & 2 deletions documents/src/templates/import-elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ name: import-elements
*/

import '/resources/elements/index.js';
import { halo } from '/theme-loader.js';
await halo();
import { ds } from '/theme-loader.js';
await ds();
14 changes: 13 additions & 1 deletion documents/src/theme-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const ThemePackage = {
light: () => `/resources/elements/light.js`,
dark: () => `/resources/elements/dark.js`,
},
ds: {
light: () => `/resources/elements/light.js`,
dark: () => `/resources/elements/dark.js`,
}
};

/**
Expand Down Expand Up @@ -38,6 +42,14 @@ const halo = async () => {
}
};

const ds = async () => {
if (themeVariant === 'light') {
await import(ThemePackage.ds.light());
} else {
await import(ThemePackage.ds.dark());
}
};

applyThemeWrapper();

export { themeVariant, halo };
export { themeVariant, halo, ds };
Loading